Home >Backend Development >PHP Problem >How to delete php under centos7
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.
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!