search
HomeBackend DevelopmentPHP ProblemHow to delete php in centos7+yum

How to delete php in centos7+yum

Jan 19, 2023 am 10:00 AM
phpcentosyum

centos7 yum method to delete php: 1. Check the PHP version through "php-v"; 2. Use "rpm -qa|grep php" to check the installed PHP related extensions; 3. By executing "yum Just use the "remove php" command to uninstall php.

How to delete php in centos7+yum

The operating environment of this tutorial: centos7 system, PHP5.6 version, DELL G3 computer

How to delete php in centos7 yum?

CentOS7 completely uninstalls PHP

1 Check the PHP version

php-v

2 Check the installed PHP related extensions

rpm -qa|grep php

3 Uninstall

yum remove php

4 Uninstall the remaining extensions

Uninstall according to the information found in step 2, for example:

yum remove -y php-pdo-5.1.6-27.el5_5.3

Until the command in step 2 outputs no information.

5 Uninstall php version information

Sometimes after following the above steps, php -v will still output the version information.

This may be residual PHP after compilation and installation. You need to search globally and delete related files.

find / -name php

Recommended learning: "PHP Video Tutorial"

The above is the detailed content of How to delete php in centos7+yum. 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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool