Home>Article>Backend Development> How to completely delete php7.0 in ubuntu

How to completely delete php7.0 in ubuntu

王林
王林 Original
2021-09-24 16:23:00 3020browse

ubuntu彻底删除php7.0的方法:1、删除php的相关包及配置;2、删除关联并清除dept列表;3、检查是否已卸载干净。

How to completely delete php7.0 in ubuntu

本文操作环境:ubuntu 18.04系统、php 7.0、thinkpad t480电脑。

ubuntu系统彻底删除php的步骤如下所示:

一、删除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

推荐学习:php培训

The above is the detailed content of How to completely delete php7.0 in ubuntu. 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