关于center os yum卸载和python卸载后的解决办法

首先找到你安装Centos的光盘或者ISO文件,只要系统版本一样即可。拷贝如下文件到系统中:

1
2
3
4
5
python-2.6.6-36.el6.x86_64.rpm
python-urlgrabber-3.9.1-8.el6.noarch.rpm
python-devel-2.6.6-36.el6.x86_64.rpm
python-libs-2.6.6-36.el6.x86_64.rpm
yum-3.2.29-40.el6.centos.noarch.rpm

具体版本号,根据你系统盘或者ISO提供为准。我是拷贝到了如下目录

1
/usr/local/src/Python-2 .6.6

执行安装

1
2
3
4
5
6
7
8
9
cd /usr/local/src/Python- 2.6 . 6 /
rpm -Uvh --replacepkgs *.rpm

虽然版本不同,给了我灵感,我于是下了center os 5.10的包,在center os 文件夹里面找到了以上几个包,然后系统提示我缺少一下依赖包,

python-2.4.3-56.el5.x86_64.rpm

python-elementtree-1.2.6-5.x86_64.rpm

python-iniparse-0.2.3-6.el5.noarch.rpm

python-libs-2.4.3-56.el5.x86_64.rpm

python-sqlite-1.1.7-1.2.1.x86_64.rpm

python-urlgrabber-3.1.0-6.el5.noarch.rpm

rpm-python-4.4.2.3-34.el5.x86_64.rpm

yum-3.2.22-40.el5.centos.noarch.rpm

yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm

yum-metadata-parser-1.1.2-4.el5.x86_64.rpm

你可能感兴趣的:(linux,学习)