The first operation on the linux server, although I used to play with linux, is basically on the client. I have not been operating in the production environment. I am working on a project using linux, but the installed version is old, so you are ready to uninstall it.
I searched for the information online, and I also read and learned the information. I found a few more documents for comparison.
First, you must list the php installation packages.
Type
# Rpm-qa | grep php
Will list php-related installation packages
Enter rpm-e and package name to uninstall the software. The package names listed are uninstalled in sequence.
As long as you remember the command, it is still not difficult, of course, apache also has to uninstall and reinstall
The process is the same
Some tough packages may not be uninstalled during the process. You can use this command to uninstall them.
# Rpm-e package name -- nodeps