Uninstall software in linux

Source: Internet
Author: User

In linux, uninstall the software configure: it is used to configure the environment when installing the software in source code. It generates makefile files based on your configuration options and your system conditions to prepare the most common parameters for make :. /configure -- prefix: If no prefix is specified, the executable files are stored in/usr/local/bin by default, and the library files are stored in/usr/local/lib by default, the configuration file is stored in/usr/local/etc by default. Put other resource files in/usr/local/share. To uninstall this program, you must either use make uninstall in the original make directory (provided that the make file has been specified as uninstall) or manually delete the relevant files in the preceding directory. If you specify a prefix, simply delete a file folder. The installation of software in Linux is mainly in two different forms. The first installation file is xxx.tar.gz, and the other is named xxx. i386.rpm. Most of the software released in the first method is sent in the source code form, and the second method is directly sent in binary form. First, copy the installation file to your directory. For example, if you log on as root, copy the software to/root. # Cp xxx.tar.gz/root 2. Because the file is compressed and packaged, decompress it. Command: # tar xvzf filename.tar.gz if it is in the filename.tar.bz2 format, it should be tar jxvf filename.tar.bz2 to decompress 3. After executing this command, install the file in the path and decompress it in the current directory. Run the ls command to view the decompressed file. Generally, the files generated after decompression contain the "Install" file. This file is a plain text file that describes the installation method of the software package in detail. 4. Execute the decompressed command to generate an executable script program named configure. It is used to check whether the system has the library required for compilation, and whether the library version meets the compilation requirements and other system information required for installation. Prepare for subsequent compilation. Command :#. /configure if you want to install the software to the specified directory, use #. /configure -- prefix =/the directory you specify. For example, if you want to install an mlterm in the/opt/mlterm directory, enter the following #. /configure -- prefix =/opt/mlterm 5. after the check is passed, the MakeFile file for compilation will be generated. Now you can start compiling. The compilation process varies depending on the software scale and computer performance. Command: # make. 6. After compilation, enter the following command to start installation: # make install 7. After installation is complete, clear the temporary files generated during compilation and files generated during configuration. Run the following command: # make clean # make distclean. The software installation is complete. For the second method, the installation method is much simpler. Copy the installation file to your directory in the same way as the first method. Then use rpm to install the file. The command is as follows: # rpm-I filename. i386.rpm will automatically unpack the installation file and install the software in the default directory. And register the software installation information to the rpm database. The role of parameter I is to enable rpm to enter the installation mode. Software Uninstall 1. Software Uninstall mainly uses rpm. To uninstall a software package, you must first know the name registered in the system. Enter the command: # rpm-q-a to query all software packages installed in the current system. 2. Determine the name of the software to be detached, and you can start to uninstall the software. Run # rpm-e [package name] to uninstall the software. The function of parameter e is to enable rpm to enter the uninstall mode. Uninstall the software package named [package name. Each software package in the system depends on each other. If the object cannot be detached because of dependency, the rpm prompts and stops uninstalling the object. You can run the following command to ignore the dependency and directly start detaching: # When rpm-e [package name]-nodeps ignores dependency uninstallation, other software in the system may be unavailable. If you want to know where the rpm package is installed? # Rpm-ql [package name] should be used. 3. How to uninstall the software installed with the source code package? It is best to look at README and INSTALL. In general, it is said, but most of the software does not provide the uninstallation method of the source code package; we can find the Software Installation Point to delete. It mainly depends on where you installed it. For example, if a directory is specified during software installation. This problem will not be difficult. For example, you can use the source code package to install gaim #. /configure -- prefix =/opt/gaim # make install if mlterm # is installed #. /configure -- prefix =/opt/mlterm # make install the software installed in the source package is specified in the/opt directory, so you don't know ?? If it is deleted, the corresponding software directory will be deleted; some software will be uninstalled by executing make uninstall in the decompressed installation directory

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.