Apt to the rescue
So while upgrading python from a limited local repository I broke yum
[root@NTC-BASE-2 ~]# yum -y install foo Traceback (most recent call last): File "/usr/bin/yum", line 28, in ? import yummain ImportError: No module named yummain <code> However apt was still working <code> [root@NTC-BASE-2 ~]# rpm -e yum [root@NTC-BASE-2 sources.list.d]# apt-get update STUFF CUT Fetched 3980kB in 8s (478kB/s) Reading Package Lists... Done Building Dependency Tree... Done [root@NTC-BASE-2 sources.list.d]# apt-get install yum Reading Package Lists... Done Building Dependency Tree... Done The following extra packages will be installed: yum-metadata-parser The following NEW packages will be installed: yum yum-metadata-parser 0 upgraded, 2 newly installed, 0 removed and 234 not upgraded. Need to get 419kB of archives. After unpacking 1412kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 <a href="http://mirror.centos.org" title="http://mirror.centos.org">http://mirror.centos.org</a> centos/4/apt/i386/os yum-metadata-parser 1.0-8.el4.centos [24.0kB] Get:2 <a href="http://mirror.centos.org" title="http://mirror.centos.org">http://mirror.centos.org</a> centos/4/apt/i386/os yum 2.4.3-4.el4.centos [395kB] Fetched 419kB in 1s (417kB/s) Committing changes... Preparing... ########################################### [100%] 1:yum-metadata-parser ########################################### [ 50%] 2:yum ########################################### [100%] Done. [root@NTC-BASE-2 sources.list.d]# y [root@NTC-BASE-2 sources.list.d]# yum update Setting up Update Process Setting up repositories
Back in business :)
Comments
#1 Bart Verwilst : Or..
You can just stop at step 1 and live a happy yumless life ;)