Home > Article > Operation and Maintenance > How to uninstall installed software in linux
1. Software uninstallation is mainly performed 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]
Recommended online video tutorial: linux video tutorial
to uninstall the software. The function of parameter e
is to make rpm enter uninstall mode. Uninstall the software package named [package name]
.
Since various software packages in the system are dependent on each other, 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.
How to uninstall software installed with source code package?
It is best to read README
and INSTALL
, which are generally mentioned, but most software does not provide a method to uninstall the source code package; we can Find the installation point of the software and delete it. It mainly depends on where you install it.
For example:
If you install software, specify a directory. This question won't be difficult either.
For example, use the source code package to install gaim
#./configure --prefix=/opt/gaim #make #make install
If you install mlterm
#./configure --prefix=/opt/mlterm #make #make install
Specify the software installed in the source code package to be installed in the /opt
directory , then you will know. If deleted, delete the corresponding software directory.
Some software needs to be uninstalled by executing make uninstall
in the decompressed installation directory.
Recommended related articles and tutorials: linux tutorial
The above is the detailed content of How to uninstall installed software in linux. For more information, please follow other related articles on the PHP Chinese website!