Uninstall php in linux

Source: Internet
Author: User

The first operation on the linux server, although I used to play with linux, is basically on the client. I have not been operating in the production environment. I am working on a project using linux, but the installed version is old, so you are ready to uninstall it.

I searched for the information online, and I also read and learned the information. I found a few more documents for comparison.

First, you must list the php installation packages.

Type

# Rpm-qa | grep php

Will list php-related installation packages

Enter rpm-e and package name to uninstall the software. The package names listed are uninstalled in sequence.

As long as you remember the command, it is still not difficult, of course, apache also has to uninstall and reinstall

The process is the same

Some tough packages may not be uninstalled during the process. You can use this command to uninstall them.

# Rpm-e package name -- nodeps

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.