Redhat 5 build ftp-based yum server, redhatyum
YUM is Yellow dog Updater, short for Modified. It is a plan initiated by Duke University to solve the problem of RPM dependency, it is convenient for users to install and upgrade software. It is particularly noted that YUM is only used to solve RPM dependency problems, rather than other software installation modes. In the redhat system, yum cannot be used without authorization. Here we will introduce a method to build a local yum server using the redhat CD.
System Environment: Red Hat 5.9
Server IP: 192.168.100.211
Client IP: 192.168.100.212
1. Yum server Configuration:
1: mount the RHEL5 System Disk
# Mount/dev/cdrom/mnt
2: Install related software packages
# Cd/mnt/Server
# Rpm-ivh yum-3.2.22-40.el5.noarch.rpm
# Rpm-ivh yum-metadata-parser-1.1.2-4.el5.x86_64.rpm
# Rpm-ivh yum-rhn-plugin-0.5.4-29.el5.noarch.rpm
# Rpm-ivh yum-updatesd-0.9-5.el5.noarch.rpm
# Rpm-ivh createrepo-0.4.11-3.el5.noarch.rpm
3: Build an FTP-based YUM Server
# Cp-R/mnt/Server/var/ftp/pub/
# Createrepo/var/ftp/pub/Server
4: run the vsftp service (and set to start upon startup)
# Service vsftpd restart
# Chkconfig vsftpd on
Now the Yum service has been set up. You only need to configure the following on the client.
Ii. Yum client Configuration:
1: Install related software packages
# Rpm-ivh yum-3.2.22-40.el5.noarch.rpm
# Rpm-ivh yum-metadata-parser-1.1.2-4.el5.x86_64.rpm
2. Delete the default configuration file and create a new configuration file.
# Cd/etc/yum. repos. d/
# Rm-rf *
# Vi/etc/yum. repos. d/Server. repo
[Server]
Name = Red Hat
Baseurl = ftp: // 192.168.100.211/pub/Server/
Enabled = 1
Gpgcheck = 0
3: Test download
# Yum-y install php