卸载rpm包

首先通过  rpm -q <关键字> 可以查询到rpm包的名字



然后 调用 rpm -e <包的名字> 删除特定rpm包



如果遇到依赖,无法删除,使用 rpm -e --nodeps <包的名字> 不检查依赖,直接删除rpm包



如果恰好有多个包叫同样的名字,使用 rpm -e --allmatches --nodeps <包的名字> 删除所有相同名字的包, 并忽略依赖


[root@bogon ~]# rpm -q teamviewer
teamviewer-11.0.67687-0.i686
[root@bogon ~]# rpm -e teamviewer
Display all 1590 possibilities? (y or n)
[root@bogon ~]# rpm -e teamviewer-11.0.67687-0.i686
Removed symlink /etc/systemd/system/multi-user.target.wants/teamviewerd.service.
Clearing assignments ...
done
[root@bogon ~]#

猜你喜欢

转载自angie.iteye.com/blog/2341018