How to delete php under centos7

藏色散人
Release: 2023-03-05 19:22:01
Original
5294 people have browsed it

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
Copy after login

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
Copy after login

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!

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