Home > Backend Development > PHP Problem > How to check whether PHP has been completely uninstalled

How to check whether PHP has been completely uninstalled

王林
Release: 2023-02-26 22:32:01
Original
3085 people have browsed it

How to check whether PHP has been completely uninstalled

If you want to uninstall PHP cleanly, you cannot directly use the yum remove command. You need to check how many rpm packages there are, and then uninstall them one by one in the order of dependencies.

1. First check all PHP-related rpm packages installed on the machine

[root@localhost nginx]# rpm -qa | grep php
php-cli-5.3.3-22.el6.x86_64
php-pdo-5.3.3-22.el6.x86_64
php-gd-5.3.3-22.el6.x86_64
php-fpm-5.3.3-22.el6.x86_64
php-common-5.3.3-22.el6.x86_64
php-5.3.3-22.el6.x86_64
php-xml-5.3.3-22.el6.x86_64
php-pear-1.9.4-4.el6.noarch
Copy after login

2. Delete them in order of dependencies

rpm -e php-fpm-5.3.3-22.el6.x86_64
rpm-e php-pdo-5.3.3-22.el6.x86_64
rpm -e php-pear-1.9.4-4.el6.noarch
rpm-e php-cli-5.3.3-22.el6.x86_64
rpm -e php-5.3.3-22.el6.x86_64
rpm-e php-xml-5.3.3-22.el6.x86_64
rpm -e php-gd-5.3.3-22.el6.x86_64
rpm-e php-common-5.3.3-22.el6.x86_64
Copy after login

Recommended tutorial: PHP video tutorial

The above is the detailed content of How to check whether PHP has been completely uninstalled. 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