Summary of the uninstall Apache method under Linux

Source: Internet
Author: User

Method one copies the code code as follows: [email protected] ~]# rpm-qa|grep httpdhttpd-2.2.3-11.el5_2.centos.4httpd-manual-2.2.3-11.el5_2. Centos.4 Description: Rpm–qa | grep mysql command is to list the MySQL related packages, my example above is the Linux default installation of Apache RPM package list, if it is a list of other Linux versions listed may be different, but don't worry, no matter what, The uninstallation starts at the bottom of the package until the first one is uninstalled. For example: In this example, we should first uninstall the Httpd-manual-2.2.3-11.el5_2.centos.4 method as follows: Copy the code code as follows: Rpm–e Httpd-manual-2.2.3-11.el5_2. Centos.4 (there is generally no need to bring a version number, such as can be directly written rpm–e httpd-manual) copy code code as follows: Rpm–e httpd--nodepsphp and MySQL uninstall and the same as the Apache uninstall method. Note: If the uninstallation is not removed, the system will generally prompt the package dependencies, and list the name of the dependent package, first uninstall the prompt depends on the package is ready. If you really have to unload the package, you can add-nodeps this parameter to unload, for example, we uninstall Httpd-manual-2.2.3-11.el5_2.centos.4, really unload. use: [[[email protected] ~]# rpm-e httpd-manual-2.2.3-11.el5_2.centos.4--nodeps method Two copy code code as follows: Uninstall command Apachesudo Apt-get Remove Apache Uninstall Association sudo apt-get autoremove manual removal configuration sudo find/usr-name "*apache*"-exec rm-rf {}; sudo find/etc-nam E "*apache*"-exec rm-rf {}; sudo find/var-name "*apache*"-exec rm-rf {}; Similarly, uninstalling other software can be used in this way. Description: Rpm–qa | The grep httpd command is to list the Apache related packages, the example above is the Linux AS4 default installation APAche RPM Package List description: Rpm–e is the command to unload the RPM package, followed by the package name, the final version number is not to fight. rpm–e xxxx Note: If the uninstallation is not removed, the system will generally prompt the package dependencies, and list the dependencies of the package name, Uninstall the package you are prompted to rely on first. If there is really a unloading package, you can add-nodeps this parameter to unload, for example, we uninstall php-4.3.9-3.15, it is not removed. For example, view source code printing help Rpm-e xxx--nodeps Note is 2-description: RPM (RedHat packge Manager) is a RedHat company out of the package manager, using it can easily install, upgrade, uninstall, and verify the RPM-form package , query and other operations, easy installation, and uninstall can also be installed in a number of directories in the software files removed cleanly, so it is recommended that beginners use the RPM format as much as possible. RPM parameters in the-I is installed,-V is the checksum,-H is a hash to display the installation progress, *.RPM is the package file name (here *.rpm refers to *). src.rpm other than RPM); The parameter-E is the removal of the package, Packgename is the package name, which differs from the file name of the package, which is often the string that precedes the version number in the file name, such as apache-3.1.12-i386.rpm and apache-devel-3 .1.12-i386.rpm is the package file name, and their package names are Apache and Apache-devel, respectively. For more RPM parameters, refer to the man rpm page: If you do not like to install or uninstall these packages under the character interface, you can use the graphical interface software package Manager under X-window, such as glint, xrpm, or KDE kpackge, to install, upgrade, uninstall, Verification and query can be done easily by clicking the mouse. 2, *.tar.gz/*.tgz, *.bz2 form of binary package installation: Tar zxvf *.tar.gz or tar yxvf *.bz2 Uninstall: Manual removal instructions: The *.tar.gz/*.bz2 form of a binary package is packaged with the Tar tool, With GZIP/BZIP2 compression, the installation can be directly unpacked. For only a single directory after decompression software, uninstall with the command "RM-RF software directory Name"; If the files are scattered in multiple directories, you must one by one manually delete (slightly troublesome), you want to know what files are installed to the system when extracting, you can use the command "tar ztvf *.tar.gz"/"tar YTVF *.bz2 "wonTake the list. The parameter z of TAR is called gzip decompression, X is unpacked, V is checksum, F is the display result, Y is called bzip2 decompression, and T is the list of files listing packages. For more parameters Please refer to man tar.

Uninstalling Apache methods under Linux summary

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.