How does Red Hat replace Centos yum ?, Centosyum

Source: Internet
Author: User

How does Red Hat replace Centos yum ?, Centosyum

Check the original yum packages of redhat:

[Root @ localhost ~] # Rpm-qa | grep yum [root @ localhost ~] # Rpm-e -- nodeps yum-related rpm package

Download centos yum:

[root@localhost ~]#curl -o yum-metadata-parser-1.1.4-10.el7.x86_64.rpm https://mirrors.163.com/centos/7/os/x86_64/Packages/yum-metadata-parser-1.1.4-10.el7.x86_64.rpm[root@localhost ~]#curl -o yum-3.4.3-150.el7.centos.noarch.rpm https://mirrors.163.com/centos/7/os/x86_64/Packages/yum-3.4.3-150.el7.centos.noarch.rpm[root@localhost ~]#curl -o yum-plugin-fastestmirror-1.1.31-40.el7.noarch.rpm wget https://mirrors.163.com/centos/7/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.31-40.el7.noarch.rpm

During the yum Installation Process of centos, you find that python-urlgrabber is dependent on and downloaded and installed. To install python-urlgrabber, you must first Delete the old version:

[root@localhost ~]#rpm -e --nodeps python-urlgrabber[root@localhost ~]#curl -o python-urlgrabber-3.10-8.el7.noarch.rpm https://mirrors.163.com/centos/7/os/x86_64/Packages/python-urlgrabber-3.10-8.el7.noarch.rpm[root@localhost ~]#rpm -ivh python-urlgrabber-3.10-8.el7.noarch.rpm[root@localhost ~]#rpm -ivh yum-metadata-parser-1.1.4-10.el7.x86_64.rpm

The last two packages are mutually dependent, so they must be installed together:

[root@localhost ~]#rpm -ivh yum-3.4.3-150.el7.centos.noarch.rpm yum-plugin-fastestmirror-1.1.31-40.el7.noarch.rpm

Replace the yum Source:

[Root @ localhost ~] # Cd/etc/yum. repos. d/[root @ localhost ~] # Wget requests

Cache reconstruction:

[root@localhost ~]#yum clean all[root@localhost ~]#yum makecache

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.