第一步
卸载python、yum(yum依赖于python)
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
第二步
大多数的文章基本流程都没问题,重要的是导入包的数量不够(必须是26个!!!)
rpm开头的那几个大多数的文章总是没有提到,python的包也不够全!