第一步:强制删除已安装的程序及其关联。
[root@VM-0-8-centos]# rpm -qa|grep python|xargs rpm -ev --allmatches --nodeps
第二步:删除所有残余文件, xargs表示允许你对输出执行其他某些命令。
[root@VM-0-8-centos]# whereis python |xargs rm -frv
第三步:验证删除结果,返回无结果表示完全删除。
[root@VM-0-8-centos]# whereis python