Get the App
SLTechnology News&Howtos  ›  Development  › 

How to completely delete php7.0 by ubuntu

Shulou Source: shulou.com Published: 2022-06-03 10:17:51 11月15日 Update

What this article shares with you is about how ubuntu deletes php7.0 completely. The editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.

Ubuntu completely delete php7.0 methods: 1, delete the relevant php packages and configuration; 2, delete the association and clear the dept list; 3, check whether it has been uninstalled clean.

The operating environment of this paper: ubuntu 18.04system, php 7.0and thinkpad T480computer.

The steps for the ubuntu system to completely remove the php are as follows:

Delete the related packages and configurations of php

Sudo apt-get autoremove php7*

Delete the association

Sudo find / etc-name "* php*" | xargs rm-rf

Clear the dept list

Sudo apt purge `dpkg-l | grep php | awk'{print $2}'| tr "\ n"" `

4. Check whether the uninstall is clean (no return means the uninstall is complete)

Dpkg-l | grep php7.0 above is how ubuntu deletes php7.0 completely. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

Tags: Clean that is more knowledge articles systems relevance inspection configuration utility work meetings articles methods steps environment computer see knowledge points industry details Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology MySQL Shulou Tech Info Xiaomi Apple