linux下的卸载命令
1、查找你要卸载的包:rpm -qa| grep 包名
2、rpm -e --nodeps 查找到的包
或者使用yum remove 包
EXAMPLE:
1、查找你要卸载的包:rpm -qa| grep 包名
rpm -qa| grep vsftpd
结果:
[root@iZ25c748tjqZ ~]# rpm -e --nodeps vsftpd-2.2.2-14.el6.x86_64
warning: /etc/vsftpd/vsftpd.conf saved as /etc/vsftpd/vsftpd.conf.rpmsave
2、rpm -e --nodeps 查找到的包
[root@iZ25c748tjqZ ~]# yum remove vsftpd-2.2.2-14.el6.x86_64
Loaded plugins: security
Setting up Remove Process
No Match for argument: vsftpd-2.2.2-14.el6.x86_64
Package(s) vsftpd-2.2.2-14.el6.x86_64 available, but not installed.
No Packages marked for removal
检查是否删除:
[root@iZ25c748tjqZ ~]# rpm -e --nodeps vstpd
error: package vstpd is not installed