RHEL6.4 changed to CentOS Source

Source: Internet
Author: User

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.rpm

Note: 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.