Yum Command detailed

Source: Internet
Author: User
Tags ftp gpg prepare linux

First, prepare the FTP server, please see my last blog http://iceblock.blog.51cto.com/6758400/1166892.

Prepare libmcrypt-2.5.7-5.e15.i386.rpm

php-mcrypt-5.1.6-5.e15.i386.rpm

Establish Yum Server

Cd/var/ftp/cdrom (access to the CD directory on the FTP server)

Service vsftpd Start (start vsftpd)

ll/var/ftp/cdrom/server/repodata/(several files in the server warehouse)

ll/var/ftp/cdrom/vt/repodata/(several files in VT warehouse)

A client that opens another Linux as a Yum server in the virtual machine

Building the Server Warehouse

Vim/etc/yum.repos/d/rhel-debuginfo.repo (edit Yum file)

[Rhel-server]

name=red Hat Enterprise Linux Server

Baseurl=ftp://192.168.126.30/cdrom/server (Modify BaseURL)

Gpgkey=ftp://192.168.126.30/cdrom/rpm-gpg-key-redha-release (Modify Gpgkey)

Construction of VT (virtualization) Warehouse

[RHEL-VT]

name=red Hat Enterprise Linux VT

BASEURL=FTP://192.168.126.30/CDROM/VT (Modify BaseURL)

Gpgkey=ftp://192.168.126.30/cdrom/rpm-gpg-key-redha-release (Modify Gpgkey)

Building a cluster (cluster) warehouse

[Rhel-cluster]

name=red Hat Enterprise Linux Cluster

Baseurl=ftp://192.168.126.30/cdrom/cluster (Modify BaseURL)

Gpgkey=ftp://192.168.126.30/cdrom/rpm-gpg-key-redha-release (Modify Gpgkey)

Building a Clusterstorage (storage) Warehouse

[Rhel-clusterstorage]

name=red Hat Enterprise Linux clusterstorage

Baseurl=ftp://192.168.126.30/cdrom/clusterstorage (Modify BaseURL)

Gpgkey=ftp://192.168.126.30/cdrom/rpm-gpg-key-redha-release (Modify Gpgkey)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.