remove phpmyadmin from ubuntu

The “apt-get remove phpmyadmin” command will uninstall the phpmyadmin package, the purge command will remove configuration files related to Ubuntu phpMyAdmin and the  autoremove command will uninstall all the dependency packages that are no longer required.

sudo apt-get remove phpmyadmin
sudo apt-get purge phpmyadmin
sudo apt-get autoremove
sudo apt-get -f install
sudo dpkg -P phpmyadmin  
sudo rm -vf /etc/apache2/conf.d/phpmyadmin.conf
sudo rm -vfR /usr/share/phpmyadmin
sudo service apache2 restart

If you want to reinstall phpMyAdmin on Ubuntu, run:

sudo apt-get update
sudo apt-get install phpmyadmin

Disable phpMyAdmin without uninstalling

sudo a2disconf phpmyadmin
sudo systemctl reload apache2


Leave a Reply