uninstall rpm package

First, you can query the name of the rpm package through rpm -q <keyword>



and then call rpm -e <package name> to delete a specific rpm package.



If you encounter dependencies and cannot be deleted, use rpm -e --nodeps <package name> Delete the rpm package without checking the dependencies.



If there happen to be multiple packages with the same name, use rpm -e --allmatches --nodeps <package name> to delete all the packages with the same name, and ignore the dependencies


[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 ~]#

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326400430&siteId=291194637