Home > Operation and Maintenance > Linux Operation and Maintenance > How to uninstall software in linux?

How to uninstall software in linux?

藏色散人
Release: 2019-05-17 16:48:56
Original
25416 people have browsed it

How to uninstall software in linux?

How to uninstall software in Linux?

1. Uninstalling software 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
Copy after login

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]
Copy after login

to uninstall the software. 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
Copy after login

Uninstalling while ignoring dependencies may cause 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]

3. How to uninstall software installed with source code package?

It is best to read the README and INSTALL; it is generally said, 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 problem is not difficult;

For example, use the source code package to install gaim

#./configure --prefix=/opt/gaim
#make
#make install
Copy after login

If you install mlterm

#./configure --prefix=/opt/mlterm
#make
#make install
Copy after login

Specify the software installed in the source code package to be installed in /opt directory, you will know this;

If deleted, delete the corresponding software directory;

Some software must be executed in the decompressed installation directory make uninstall , so Just uninstalled it.

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template