CentOS6.8 卸载Python2.6后,重新安装。python2.6升级后yum不能用。 1、删除现有Python rpm -qa|grep python|xargs rpm -ev --allmatches --nodeps ##强制删除已安装程序及其关联 whereis python |xargs rm -frv ##删除所有残余文件 ##xargs,允许你对输出执行其他某些命令 whereis python ##验证删除,返回无结果 2、删除现有的yum rpm -qa|grep yum|xargs rpm -ev --allmatches --nodeps whereis yum |xargs rm -frv 重新安装python2.6 恢复yum
2021-04-14 23:21:31 6.49MB yum不能用 py2.6安装包 python2.6
1