Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to uninstall PHP 7 completely? (Kali Linux/Debian)

On my distribution of kali (2016.2) there was a php package v7.0.11 preinstalled. I'd like to use version 5.6 instead. Could anyone guide me through on how to remove it? I've already tried, looking for some guides online, but php7 is still pretty fresh, so there are not too many threads about it, especially while using kali. Nevertheless, I found some clues but I didn't manage to do it properly, apparently. A lot of mess with dependencies, and overall, my whole kali install is now broken.

After purging php7, I'd like to install php 5.6, is there an easy way to do it with apt?

Thanks in advance. Matthew

like image 947
vane41 Avatar asked Sep 28 '16 17:09

vane41


2 Answers

I installed php 5.6 following this tutorial : http://www.drupal8.ovh/en/tutoriels/178/how-to-install-php-on-linux

To remove php 7, you can try:

sudo apt-get purge php7.0-common
like image 175
Net Avatar answered Sep 22 '22 05:09

Net


This will remove all php7 version, be it php 7.0 or php 7.1 etc..

sudo apt-get purge php7.*

like image 44
cecil Avatar answered Sep 20 '22 05:09

cecil