RHEL6.4 changed to CentOS Source
After installing RHEL of Version 64 of version 6.4, we found that the Redhat yum online update is charged. If you do not register it, you cannot use it, that is, you cannot install software online, therefore, we need to change the default source to 163.
Delete the default yum Source
rpm
-
aq | grep yum|xargs rpm
-
e
-
-
nodepsDownload the latest yum installation package
wget http:
/
/
ftp.nara.wide.ad.jp
/
pub
/
Linux
/
centos
/
6.4
/
os
/
x86_64
/
Packages
/
python
-
iniparse
-
0.3
.
1
-
2.1
.el6.noarch.rpm
wget http:
/
/
ftp.nara.wide.ad.jp
/
pub
/
Linux
/
centos
/
6.4
/
os
/
x86_64
/
Packages
/
yum
-
metadata
-
parser
-
1.1
.
2
-
16.el6
.x86_64.rpm
wget http:
/
/
ftp.nara.wide.ad.jp
/
pub
/
Linux
/
centos
/
6.4
/
os
/
x86_64
/
Packages
/
yum
-
3.2
.
29
-
40.el6
.centos.noarch.rpm
wget http:
/
/
ftp.nara.wide.ad.jp
/
pub
/
Linux
/
centos
/
6.4
/
os
/
x86_64
/
Packages
/
yum
-
plugin
-
fastestmirror
-
1.1
.
30
-
14.el6
.noarch.rpm
Note: The common tutorials on the Internet are to download the above rpm package from Netease, but in fact these addresses are already 404, so please download the corresponding version on this website, I am a 64-bit version, so select the x86_64 directory under the http://ftp.nara.wide.ad.jp/pub/Linux/centos
Install the yum packagerpm -ivh python-iniparse-0.3.1-2.1.el6.noarch.rpmrpm -ivh yum-metadata-parser-1.1.2-16.el6.x86_64.rpmrpm -ivh yum-3.2.29-40.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpmNote: The last two packages must be installed together. Otherwise, the installation will fail because the two installation packages are mutually dependent.
To change the yum source, we use the image source of Netease.
- Cd/etc/yum. repos. d
- You can go here to http://mirrors.163.com/.help/centos.html to download the latest CentOS-Base.repo files
- Edit the file, replace all $ releasever in the file with the version number, that is, 6 is last saved (: 0, $ s/\ $ releasever/6/g)
Clear yum Cacheyum clean allyum makecache # Cache the software package information on the server to a local machine to speed up searching and installing softwareyum install xxxx # Test whether the domain name is available