How to uninstall software in a Linux system

Source: Internet
Author: User
Tags bz2

Software for RPM Package installation
1, determine the software version

Rpm-qa|grep softname*

Softname is the name of the software, the * wildcard character can be used in the indeterminate part. Then there will be a list of related packages.

2. Uninstall Package

Rpm-e softname_version

Softname_version is the full package name.

When uninstalling the RPM installation package, you will often experience the following error as prompted by the system:

Error:specifies multiple packages, this error is typically due to two or more packages with the same name (typically: x86 and x64 packages are installed), and Linux cannot differentiate between uninstall destinations. You can use the--allmatches parameter to tell the uninstaller to uninstall as long as the match is unloaded, equivalent to the same name.
Common Uninstall error xxx.so is needed by YYY indicates that these libraries are dependent on these programs (run required), and if you confirm that there are no problems, you can use the--nodeps parameters, regardless of dependencies and directly uninstall the GD package, such as # RPM-E GD-- Allmatches--nodeps
3. Custom Installation and uninstall software

This kind of software is very rare, but some commercial software will provide, installation uninstall will be like Windows platform, usually only run a script to complete.

Iii. self-compiling and installing software
This kind of software has *.tar.gz,*.tar.bz,*.tar.bz2, all is the source program, need to compile to install (of course, also have the above Green decompression installation, but also use tar.gz so packaged, not only). This type of software uses the rpm command above to find no information. Only God knows (he may not know for some time) where to install.

1. Uninstall self-compiling software

Make Uninstall

Note that the command is to be executed in the source package directory, the use of this command to uninstall the software, will be more thorough, and all the relevant paths will be listed.

However, often after we install the source package will be deleted, only the installation target, then find the installation configuration is very troublesome (the path may be the default path, may also specify the path). and may not be able to find it. Installing the log may not be helpful.

2, xxx Uninstall method

If you encounter the situation mentioned above (in fact, often encountered), and can not find the path, only manually deleted, to ensure that there is no running interference program on it.

In addition, there are *.src.rpm forms of source code packages, also need to compile the installation, uninstall method with the second section.

*.tar.gz/*.tgz, *.bz2 form of source code package

Installation: Tar zxvf *.tar.gz or tar yxvf *.bz2 first extract
Then go to the unpacked directory:
./configure Configuration


Uninstalling: Make uninstall or manually removed

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.