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.
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包名 强制删除
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!