Home > Article > Operation and Maintenance > How to uninstall software in linux
Uninstalling software in Linux is mainly done using rpm. To uninstall software, you must first know the name of the software package registered in the system. Type the command:
#查询到当前系统中安装的所有的软件包 rpm -q -a #查询pcre安装的软件包名称 rpm -q -a | grep "pcre" #查询rpm包安装到哪里 rpm -ql pcre-7.8-7.el6.x86_64
After determining the name of the software to be uninstalled, you can start to actually uninstall the software
#卸载软件,参数e的作用是使rpm进入卸载模式。对名为[package name]的软件包进行卸载 rpm -e [package name] /*由于系统中各个软件包之间相互有依赖关系。如果因存在依赖关系而不能卸载,rpm将给予提示并停止卸载。你可以使用如下的命令来忽略依赖关系,直接开始卸载:*/ rpm -e [package name] -nodeps #进入安装包卸载 make uninstall
Related recommendations: "Linux Tutorial"
The above is the detailed content of How to uninstall software in linux. For more information, please follow other related articles on the PHP Chinese website!