Install the CentOS package in Yum

Source: Internet
Author: User

Operating system: Red Hat Enterprise Linux 5

1. Uninstall Rhel's default installed Yum Package view Yum package rpm-qa|grep Yum Uninstall rpm-qa|grep yum|xargs rpm-e--nodeps 2, download new Yum package 64-bit Linux system download installation package wget Http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/yum-3.2.22-40.el5.centos.noarch.rpmwget/HTTP Centos.ustc.edu.cn/centos/5/os/x86_64/centos/yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpmwget/HTTP Centos.ustc.edu.cn/centos/5/os/x86_64/centos/yum-metadata-parser-1.1.2-4.el5.x86_64.rpm32 bit Linux system download installation package wget http ://centos.ustc.edu.cn/centos/5/os/i386/centos/yum-3.2.22-40.el5.centos.noarch.rpmwget http://centos.ustc.edu.cn /centos/5/os/i386/centos/yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpmwget Http://centos.ustc.edu.cn/centos /5/os/i386/centos/yum-metadata-parser-1.1.2-4.el5.i386.rpm  Note: The installation package may be upgraded and the last file name can be viewed under the most recent path, e.g. http:// centos.ustc.edu.cn/centos/5/os/x86_64/centos/http://centos.ustc.edu.cn/centos/5/os/i386/centos/  then install the rpm -IVH yum-* Note: Yum and yum-fastestmirror depend on each other, so they can be installed at the same time. 3. Download Yum configuration source using the command  cd/etc/yum.repos.d/   enter the Yum configuration directory. Enter  WGE in the terminalT http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo command to download the Centos-base.repo file. Then back up the original Rhel-debuginfo.repo, using the command MV Centos-base.repo Rhel-debuginfo.repo, will centos- Base.repo renamed to Rhel-debuginfo.repo.  4, run Yum makecache generate cache         

Yum package for CentOS installation

Related Article

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.