Yum installation for RedHat system

Source: Internet
Author: User
The Yum program of the RedHat system cannot be used because RedhatLinux is not registered. Therefore, replace it with the yum program of centos. 1. Download The Yum installation package. because of the different architecture and package updates, you may need to adjust the following version numbers for directories and file names. # W .. RedHat system Yum installation Redhat Linux is usually not registered, resulting in yum program unavailability, it needs to be replaced with centos yum program. 1. Download The Yum installation package. because of the different architecture and package updates, you may need to adjust the following version numbers for directories and file names. # Wget http://mirrors.163.com/centos/5/os/ X86_64/CentOS/yum-3.2.22-40.el5.centos.noarch.rpm # wget http://mirrors.163.com/centos/5/os/ X86_64/CentOS/yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm # wget http://mirrors.163.com/centos/5/os/ X86_64/CentOS/yum-metadata-parser-1.1.2-4.el5.x86_64.rpm 2. find the current yum program, unmount # rpm-qa | grep yum # rpm-e yum-3.2.22-20.el5 -- nodeps # rpm-e yum-updatesd-0.9-2.el5 -- nodeps # rpm-e yum-security-1.1.16-13.el5 -- nodeps # rpm-e yum-metadata-parser-1.1.2-3.el5 -- nodeps # rpm- e yum-rhn-plugin-0.5.4-13.el5 -- nodeps 3. download and import KEY # cd/etc/pki/rpm-gpg/# wget http://mirrors.sohu.com/centos/RPM-GPG-KEY-CentOS-5 # Rpm -- import/etc/pki/rpm-gpg/RPM-GPG-KEY * 4. install the yum installation package rpm-ivh yum-3.2.22-40.el5.centos.noarch.rpm \ yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm \ yum-metadata-parser-1.1.2-4.el5.x86_64.rpm 5. modify the configuration file mv/etc/yum. repos. d/rhel-debuginfo.repo/etc/yum. repos. d/rhel-debuginfo.repo.bak vi/etc/yum. repos. d/rhel-debuginfo.repo [base] name = Red Hat Enterprise Linux $ releasever-Base baseurl = http://mirrors.163.com/centos/5/os/ $ Basearch/gpgcheck = 1 [update] name = Red Hat Enterprise Linux $ releasever-Updates baseurl = http://mirrors.163.com/centos/5/updates/ $ Basearch/gpgcheck = 1 [extras] name = Red Hat Enterprise Linux $ releasever-Extras baseurl = http://mirrors.163.com/centos/5/extras/ $ Basearch/gpgcheck = 1 [addons] name = Red Hat Enterprise Linux $ releasever-Addons baseurl = http://mirrors.163.com/centos/5/addons/ $ Basearch/gpgcheck = 1 6. clear yum source yum clean all 7. yum install vim # test whether yum installation is complete. you can install the yum install program.
 
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.