Home >Operation and Maintenance >Linux Operation and Maintenance >How to uninstall installed software programs in linux?
The installation and uninstallation of Linux software has always been a problem that troubles many new users. The following article will introduce to you how to uninstall installed software programs in Linux. I hope it will be helpful to you.
In Windows, we can use the installation and uninstallation program that comes with the software or "Add/Remove Programs" in the control panel. Similarly, there is a powerful software installation and uninstallation tool under Linux called RPM. It can be used to create, install, query, update, and uninstall software. This tool is used from the command line. Enter rpm at the Shell prompt to get help information for the command.
Software uninstallation
1. Software uninstallation 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
to query all software packages installed in the current system.
2. After determining the name of the software to be uninstalled, you can start to actually uninstall the software. Type the command:
#rpm -e [package name]
to uninstall the software.
Description:
The function of parameter e is to make rpm enter uninstall mode. Uninstall the software package named [package name].
Because there are dependencies between various software packages in the system. If it cannot be uninstalled due to dependencies, rpm will give a prompt and stop the uninstallation. You can use the following command to ignore dependencies and start uninstalling directly:
#rpm -e [package name] -nodeps
Uninstalling while ignoring dependencies may cause some other software in the system to become unusable
If you want to know about rpm package installation Where have you been?
Should use
#rpm -ql [package name]
Related learning recommendations: linux video tutorial
The above is the detailed content of How to uninstall installed software programs in linux?. For more information, please follow other related articles on the PHP Chinese website!