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