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

How to uninstall software in linux?

藏色散人
藏色散人Original
2019-05-17 16:48:5625381browse

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

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. 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 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

If you install mlterm

#./configure --prefix=/opt/mlterm
#make
#make install

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!

Statement:
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
Previous article:what is linux bash?Next article:what is linux bash?