yum---no module named yum

Downoad RPM

[root@dsnode01 py]# ll
total 7520
-rw-r--r-- 1 root root   92252 Mar 29 12:28 python-2.7.5-48.el7.x86_64.rpm
-rw-r--r-- 1 root root  402296 Mar 29 12:28 python-devel-2.7.5-48.el7.x86_64.rpm
-rw-r--r-- 1 root root 5911152 Mar 29 12:29 python-libs-2.7.5-48.el7.x86_64.rpm
-rw-r--r-- 1 root root 1283988 Mar 29 12:30 yum-3.4.3-150.el7.centos.noarch.rpm


[root@dsnode01 py]# rpm -Uvh --replacepkgs *.rpm --force
Preparing...                          ################################# [100%]
Updating / installing...
   1:python-libs-2.7.5-48.el7         ################################# [ 14%]
   2:python-2.7.5-48.el7              ################################# [ 29%]
   3:python-devel-2.7.5-48.el7        ################################# [ 43%]
   4:yum-3.4.3-150.el7.centos         ################################# [ 57%]
Cleaning up / removing...
   5:yum-3.4.3-158.el7.centos         ################################# [ 71%]
   6:python-2.7.5-69.el7_5            ################################# [ 86%]
   7:python-libs-2.7.5-69.el7_5       ################################# [100%]

Popular posts from this blog

Shrink you container size up to 95%.

alma linux: dnf Module yaml error: Unexpected key in data