Home > Backend Development > PHP Tutorial > How to force uninstall PHP on centOS

How to force uninstall PHP on centOS

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-29 09:08:30
Original
947 people have browsed it

本 View PHP version command:

#php -v

This command is to delete not clean

#yum remove php

#php -v

You will still see version information. . . . .

must be forcibly deleted

#rpm -qa|grep php

The prompts are as follows

#
php-pdo-5.1.6-27. el5_5.3
#php-mysql-5.1.6-27.el5_5.3
#php-xml-5.1.6-27.el5_5.3
#php-cli-5.1.6-27.el5_5.3
# php-common-5.1.6-27.el5_5.3
#php-gd-5.1.6-27.el5_5.3

Note that to uninstall, you must uninstall the one without dependencies first

pdo is Dependencies of mysql;
common is a dependency of gd;
For example:
# rpm -e php-pdo-5.1.6-27.el5_5.3
error: Failed dependencies:
php-pdo is needed by ( installed) php-mysql-5.1.6-27.el5_5.3.i386


So the correct uninstallation sequence is:
# rpm -e php-mysql-5.1.6-27.el5_5.3
# rpm -e php-pdo-5.1.6-27.el5_5.3
# rpm -e php-xml-5.1.6-27.el5_5.3
# rpm -e php-cli-5.1.6-27.el5_5 .3
# rpm -e php-gd-5.1.6-27.el5_5.3
# rpm -e php-common-5.1.6-27.el5_5.3

Use again# php -v

There is no prompt to view version information

The above introduces how to forcefully uninstall PHP on centOS, including the relevant aspects. I hope it will be helpful to friends who are interested in PHP tutorials.

🎜
Related labels:
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 Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template