RHEL 6.5 x86_64 configure CentOS yum Source
1. Delete the yum source that comes with rhel.
# Rpm-aq | grep yum | xargs rpm-e -- nodeps
2. download the new yum installation package
Wget http://mirrors.163.com/CentOS/6/ OS /x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
Wget http://mirrors.163.com/centos/6/ OS /x86_64/Packages/yum-3.2.29-69.el6.centos.noarch.rpm
Wget http://mirrors.163.com/centos/6/ OS /x86_64/Packages/yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm
3. Install the yum package. Note that the highlighted red package must be installed together with dependencies.
Rpm-ivh yum-metadata-parser-1.1.2-16.el6.x86_64.rpm yum-3.2.29-69.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm
4. Change to 163 yum Source
# Cd/etc/yum. repos. d/
# Wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
# Ls
CentOS6-Base-163.repo
Replace all $ releasever in the file with the version number, that is, 6.
# Sed-I's # $ releasever #6 # G' CentOS6-Base-163.repo
5. Clear yum Cache
# Yum clean all
# Yum makecache # cache the software package information on the server to a local machine to speed up searching and installing software
For more YUM tutorials, see the following:
RedHat 6.2 modify yum source in Linux use CentOS source for free
Configure the epel yum Source
Redhat local yum source configuration
Description of yum configuration file
Install yum in RedHat 6.1)
YUM installation and cleaning
Build yum local source on CentOS 6.4