从 Ubuntu 完全卸载 PHP
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9615005/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Uninstall PHP completely from Ubuntu
提问by Sunshine
Could some one tell me how to uninstall PHP completely from Ubuntu? I have problems with installing MySql because of this. There seem to be some unmet dependencies. I think I messed up with the whole installation procedure. Could someone help me with this problem?
有人能告诉我如何从 Ubuntu 中完全卸载 PHP 吗?因此,我在安装 MySql 时遇到了问题。似乎有一些未满足的依赖项。我想我搞砸了整个安装过程。有人可以帮我解决这个问题吗?
回答by Starx
This is not a easy way to answer. First we have to know how to installed the PHP at first place.
这不是一个简单的答案。首先我们首先要知道如何安装PHP。
But for every way, this must work. Search what kind of package you have installed using
但对于每一种方式,这都必须有效。搜索您使用的安装包类型
aptitude search php5
and remove them accordingly using purge
command
并使用purge
命令相应地删除它们
sudo aptitude purge php5-package1 ...so on
回答by Ynhockey
I don't use Ubuntu, but: sudo apt-get remove php* should work.
我不使用 Ubuntu,但是: sudo apt-get remove php* 应该可以工作。
回答by Erik
sudo apt-get remove --purge
sudo apt-get remove --purge