How to uninstall php

爱喝马黛茶的安东尼
Release: 2023-02-23 14:10:01
Original
7330 people have browsed it

How to uninstall php

If you want to uninstall PHP cleanly, use yum remove php directly. If the uninstallation is not clean, you can first check the installed rpm package directory, and then uninstall one by one in order.

Related recommendations: "PHP Tutorial"

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

[root@localhost nginx]# rpm -qa | grep php php55-php-pecl-zip-1.15.1-1.el7.remi.x86_64 php55-php-gd-5.5.38-7.el7.remi.x86_64 php55-runtime-2.1-5.el7.remi.x86_64 php55-2.1-5.el7.remi.x86_64 php55-php-pecl-jsonc-1.3.10-1.el7.remi.x86_64 php55-php-xml-5.5.38-7.el7.remi.x86_64 php55-php-5.5.38-7.el7.remi.x86_64 php55-php-common-5.5.38-7.el7.remi.x86_64 php55-php-process-5.5.38-7.el7.remi.x86_64 php55-php-mbstring-5.5.38-7.el7.remi.x86_64 php55-php-pear-1.10.5-2.el7.remi.noarch php55-php-cli-5.5.38-7.el7.remi.x86_64
Copy after login

2. Delete in dependency order.

rpm -e php55-php-pecl-zip-1.15.1-1.el7.remi.x86_64 rpm -e php55-php-gd-5.5.38-7.el7.remi.x86_64 rpm -e php55-runtime-2.1-5.el7.remi.x86_64 rpm -e php55-2.1-5.el7.remi.x86_64 rpm -e php55-php-pecl-jsonc-1.3.10-1.el7.remi.x86_64 rpm -e php55-php-xml-5.5.38-7.el7.remi.x86_64 rpm -e php55-php-5.5.38-7.el7.remi.x86_64 rpm -e php55-php-common-5.5.38-7.el7.remi.x86_64 rpm -e php55-php-process-5.5.38-7.el7.remi.x86_64 rpm -e php55-php-mbstring-5.5.38-7.el7.remi.x86_64 rpm -e php55-php-pear-1.10.5-2.el7.remi.noarch rpm -e php55-php-cli-5.5.38-7.el7.remi.x86_64
Copy after login

The above is the detailed content of How to uninstall php. 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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!