Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Uninstall PHP-FPM (7.0) UBUNTU or reset configuration

Tags:

php

ubuntu

I want to know how to uninstall PHP7.0-FPM From ubuntu 16.x

I tried removing it but the config is the same when I reinstall, how do I completely undo the changes I have made in the configs?

like image 861
null_byte Avatar asked Nov 24 '16 20:11

null_byte


1 Answers

The command apt-get remove will remove only the binary , you should use the purge command to remove the needed package with its dependencies and configuration file as follows :

sudo apt-get remove --purge php-fpm

Or

sudo apt-get autoremove --purge php-fpm

Then run the following commands:

sudo apt-get clean
sudo apt-get autoclean
sudo apt-get autoremove
like image 65
GAD3R Avatar answered Sep 22 '22 07:09

GAD3R