Introduction: Because RHEL's yum online update is charged, it cannot be used without registration, that is, it cannot install software online. In this case, do you want to use the RHEL system and yum source to install software online? There is a solution. Please read it down! 1. Delete the original yumrpm-aq | grepyum | xargsrpm-e -- nodeps of RHEL.
Introduction: Because RHEL's yum online update is charged, it cannot be used without registration, that is, it cannot install software online. In this case, do you want to use the RHEL system and yum source to install software online? There is a solution. Please read it down!
1. Delete the original yum of RHEL.
Rpm-aq | grep yum | xargs rpm-e -- nodeps # Delete
2. download the new yum installation package # Here we use the CentOS yum Source
Wget http://vault.centos.org/6.0/ OS /x86_64/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm
Wget http://vault.centos.org/6.0/ OS /x86_64/Packages/yum-metadata-parser-1.1.2-14.1.el6.x86_64.rpm
Wget http://vault.centos.org/6.0/ OS /x86_64/Packages/yum-3.2.27-14.el6.centos.noarch.rpm
Wget http://vault.centos.org/6.0/ OS /x86_64/Packages/yum-plugin-fastestmirror-1.1.26-11.el6.noarch.rpm
3. Install the yum Software Package
Rpm-ivh python-iniparse-0.3.1-2.1.el6.noarch.rpm
Rpm-ivh yum-metadata-parser-1.1.2-14.1.el6.i686.rpm
Rpm-ivh yum-3.2.27-14.el6.centos.noarch.rpm
Rpm-ivh yum-plugin-fastestmirror-1.1.26-11.el6.noarch.rpm
Note: The last two installation packages must be installed together. Otherwise, the system prompts mutual dependency and installation fails.
4. Change yum source # Use the CentOS image source of Netease
Cd/etc/yum. repos. d/
Wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
Vi CentOS6-Base-163.repo # editing files
Replace all $ releasever in the file with the version number, that is, 6 is saved!
Or directly copy the following memory to the CentOS6-Base-163.repo file (modified)
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and
# Update status of each mirror to pick mirrors that are updated to and
# Geographically close to the client. You shoshould use this for CentOS updates
# Unless you are manually picking other mirrors.
#
# If the specified list = does not work for you, as a fall back you can try
# Remarked out baseurl = line instead.
#
#
[Base]
Name = CentOS-6-Base-163.com
Baseurl = http://mirrors.163.com/centos/6/ OS /?basearch/
# Items list = http://mirrorlist.centos.org /? Release = 6 & arch = $ basearch & repo = OS
Gpgcheck = 1
Gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
# Released updates
[Updates]
Name = CentOS-6-Updates-163.com
Baseurl = http://mirrors.163.com/centos/6/updates/?basearch/
# Items list = http://mirrorlist.centos.org /? Release = 6 & arch = $ basearch & repo = updates
Gpgcheck = 1
Gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
# Additional packages that may be useful
[Extras]
CentOS-6-Extras-163.com
Baseurl = http://mirrors.163.com/centos/6/extras/?basearch/
# Items list = http://mirrorlist.centos.org /? Release = 6 & arch = $ basearch & repo = extras
Gpgcheck = 1
Gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
# Additional packages that extend functionality of existing packages
[Centosplus]
CentOS-6-Plus-163.com
Baseurl = http://mirrors.163.com/centos/6/centosplus/?basearch/
# Items list = http://mirrorlist.centos.org /? Release = 6 & arch = $ basearch & repo = centosplus
Gpgcheck = 1
Enabled = 0
Gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
# Contrib-packages by Centos Users
[Contrib]
CentOS-6-Contrib-163.com
Baseurl = http://mirrors.163.com/centos/6/contrib/?basearch/
# Items list = http://mirrorlist.centos.org /? Release = 6 & arch = $ basearch & repo = contrib
Gpgcheck = 1
Enabled = 0
Gpgkey = http://developer.centos.org/centos/rpm-gpg-key-centos-65policyum clean all # Clear yum Cache
Yum makecache # cache the software package information on the server to the local machine to speed up searching and installing software
Yum install vim * # test whether yum is available
Now, RedHat6 can use CentOS yum source to install software online!
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-03/115603.htm