Linux下完全重装python和yum
转自: https://www.cnblogs.com/wangjunjiehome/p/9239005.html 完全重装python和yum 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1、删除现有Python [root@ test ~] # rpm -qa|grep python|xargs rpm -ev --allmatches --nodeps ##强制删除已安装程序及其关联 [root@ test ~] # whereis python |xargs rm -frv ##删除所有残余文件 ##xargs,允许你对输出执行其他某些命令 [root@ test ~] # whereis python ##验证删除,返回无结果 2、删除现有的yum [root@ test ~] # rpm -qa|grep yum|xargs rpm -ev --allmatches --nodeps [root@ test ~] # whereis yum |xargs rm -frv 3、从http: //mirrors .ustc.edu.cn /centos/6 .4 /os/x86_64/Packages/