Ubuntu Method for Completely Removing PHP 7.0
- 2021-10-27 06:40:22
- OfStack
1. Delete php related packages and configurations
sudo apt-get autoremove php7*
2. Delete the association
sudo find /etc -name "*php*" |xargs rm -rf
3. Clear the dept list
sudo apt purge `dpkg -l | grep php| awk '{print $2}' |tr "\n" " "`
4. Check whether the uninstall is clean (if there is no return, the uninstall is complete)
dpkg -l | grep php7.0
Summarize