Home  >  Article  >  Operation and Maintenance  >  How to delete php7 in linux

How to delete php7 in linux

藏色散人
藏色散人Original
2020-08-15 10:45:544222browse

linux删除php7的方法:首先通过“sudo apt-get autoremove php7*”命令删除php的相关包及配置;然后删除关联并清除dept列表;最后通过“dpkg -l|grep php7.0”命令检查是否卸载干净即可。

How to delete php7 in linux

推荐:《linux教程

Ubuntu彻底删除PHP7.0

一、删除php的相关包及配置

sudo apt-get autoremove php7*

二、删除关联

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

三、清除dept列表

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

四、检查是否卸载干净(无返回就是卸载完成)

 dpkg -l | grep php7.0

The above is the detailed content of How to delete php7 in linux. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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