How to delete all dependent packages of php

藏色散人
Release: 2023-03-10 08:54:01
Original
2632 people have browsed it

How to delete all dependent packages of php: First use the command "#rpm -qa|grep php" to view all php-related rpm packages; then delete them through the "#rpm -e xxx" command.

How to delete all dependent packages of php

The operating environment of this article: linux5.9.8 system, PHP7.1 version, DELL G3 computer

linux forced deletion php installation package

After installing php, I found that I wanted to install the phpstudy integrated environment directly. I could only uninstall the installed php.

Use the command#rpm -qa|grep php View all PHP related rpm package,

#rpm -e xxx xxx refers to the package name of the rpm package listed in the previous command, just copy it. In this step, uninstall the installed PHP rpm package. Note that errors may occur due to possible dependencies, so you may need to adjust the order of the rpm packages to be written.

If you adjust the order of rpm packages and still cannot delete the remaining packages, you can solve the problem by force deletion:

#rpm -e xxx --nodeps其中xxx指的还是rpm包名  强制删除
Copy after login

Recommended learning: "PHP Video Tutorial"

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

Related labels:
php
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