Home  >  Article  >  Backend Development  >  How to delete php under centos7

How to delete php under centos7

藏色散人
藏色散人Original
2020-09-07 10:08:205285browse

How to delete php under centos7: First execute the [rpm -qa | grep php] command to view php-related packages; then use the [yum remove] command to delete php-related packages.

How to delete php under centos7

Recommended: "PHP Video Tutorial"

View the currently installed packages of php

rpm -qa|grep php

There will be many php related packages.

Basically, you only need to uninstall a few packages named common. All other dependencies of the same version will be deleted. If you delete php71w-common, all dependency packages of the 71w version will be deleted.

For example

yum remove php71w-common
yum remove php74w-common

There will still be a few runtime packages left, and you can also use yum remove

Of course you can try yum remove php* at the beginning, I tried it, Uninstalled completely without success.

The above is the detailed content of How to delete php under centos7. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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