Remove PHP from Ubuntu 14 [duplicate]

7

I used the following commands to remove PHP from Ubuntu:

sudo apt-get purge php5 php5-cli libapache2-mod-php5 php5-mysql phpmyadmin
sudo rm -rf /etc/php5

But when I run the command php -v on the command line, I get the following result:

PHP 5.3.29 (cli) (built: Feb  3 2016 18:12:10) 
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2014 Zend Technologies

I want to remove PHP completely.

    
asked by anonymous 17.02.2016 / 13:54

1 answer

3

With the command below, you remove all packages that the name begins with PHP and everything related to it

sudo apt-get -y purge php.*

You can see more about this here

    
18.02.2016 / 13:17