centos6.3誤刪python2.6導致yum無法使用

深圳gg發表於2019-03-28

用下面的語句刪除了python
rpm -qa | grep python | xargs rpm -e --nodeps

http://vault.centos.org/6.3/os/x86_64/Packages/python-2.6.6-29.el6_2.2.x86_64.rpm

python-2.6.6-29.el6_2.2.x86_64.rpm
python-iniparse-0.3.1-2.1.el6.noarch.rpm
python-libs-2.6.6-29.el6_2.2.x86_64.rpm
python-pycurl-7.19.0-8.el6.x86_64.rpm
python-urlgrabber-3.9.1-8.el6.noarch.rpm
rpm-4.8.0-27.el6.x86_64.rpm
rpm-python-4.8.0-27.el6.x86_64.rpm
yum-3.2.29-30.el6.centos.noarch.rpm
yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
yum-plugin-aliases-1.1.30-14.el6.noarch.rpm
yum-plugin-downloadonly-1.1.30-14.el6.noarch.rpm
yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm
yum-plugin-protectbase-1.1.30-14.el6.noarch.rpm
yum-utils-1.1.30-14.el6.noarch.rpm

rpm -ivh * --force --nodeps

相關文章