YUM is YellowdogUpdater, short for Modified. It is a plan initiated by DukeUniversity to solve the dependency between RPM and facilitate the installation and upgrade of software. It is particularly noted that YUM is only used to solve RPM dependency problems, rather than other software installation modes. However, in the RedHatLinux5 system, yum cannot be used without authorization. Here we will introduce a redhat CD-based architecture.
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 Linux 5 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
Setup http://www.linuxidc.com/Linux/2015-01/111266.htm for using a DVD as the default yum source in CentOS
RedHat 6.2 Linux modify yum source free use CentOS source http://www.linuxidc.com/Linux/2013-07/87383.htm
Configure epel yum source http://www.linuxidc.com/Linux/2012-10/71850.htm
Redhat local yum source configuration http://www.linuxidc.com/Linux/2012-11/75127.htm
Yum profile description http://www.linuxidc.com/Linux/2013-04/83298.htm
Install yum http://www.linuxidc.com/Linux/2013-06/86535.htm in RedHat 6.1
YUM installation and cleaning http://www.linuxidc.com/Linux/2013-07/87163.htm
Build yum local ground source http://www.linuxidc.com/Linux/2014-07/104533.htm on CentOS 6.4
For more information about RedHat, see RedHat topic page http://www.linuxidc.com/topicnews.aspx? Tid = 10
This article permanently updates the link address: Http://www.linuxidc.com/Linux/2015-02/112960.htm