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

How to uninstall installed software in linux

王林
Release: 2019-12-03 10:32:46
Original
4558 people have browsed it

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

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

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

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