remove apache, phpmyadmin etc from ubuntu 16.04

63,339

You can remove the packages in Ubuntu by executing the commands:

dpkg --purge phpmyadmin
dpkg --purge mysql-server
dpkg --purge apache2.2-common

Or

You have option also to remove the following packages:

sudo apt-get remove apache2*
sudo apt-get remove phpmyadmin 
sudo apt-get remove mysql-server
sudo apt-get remove php5

Or

sudo apt-get --purge apache2*
sudo apt-get --purge phpmyadmin 
sudo apt-get --purge mysql-server
sudo apt-get --purge php5
Share:
63,339

Related videos on Youtube

Muhammad Yousaf
Author by

Muhammad Yousaf

Updated on September 18, 2022

Comments

  • Muhammad Yousaf
    Muhammad Yousaf over 1 year

    how to remove apache,phpmyadmin mysql completely. I have tried a number of things now I want to remove it completely and reinstall it

  • Rinzwind
    Rinzwind over 7 years
    Aalways go for 'apt-get' when you have the option. Next: this does not remove the settings. That needs a "purge" too.
  • Marcelo Ágil
    Marcelo Ágil over 5 years
    For most commands you will need sudo in dpkg also.
  • Marcelo Ágil
    Marcelo Ágil over 5 years
    Also another tip: the dpkg command to remove apache didn't worked here so I change to "apache2" only and it worked.