如何卸载 phpmyadmin

如何卸载 phpmyadmin

我使用这种方法安装了 phpmyadmin

https://stackoverflow.com/questions/48552306/how-to-install-phpmyadmin-4-7-7-on-ubuntu/48559715

现在我看到新版本已经发布,我想完全删除已安装的版本并安装新版本。我尝试了几种卸载方法,但都没有成功。以下是我得到的结果:

sudo apt-get purge phpmyadmin*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'phpmyadmin' for glob 'phpmyadmin*'
Package 'phpmyadmin' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 28 not upgraded.

sudo dpkg-reconfigure phpmyadmin
dpkg-query: package 'phpmyadmin' is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
/usr/sbin/dpkg-reconfigure: phpmyadmin is not installed

问题是,对于我的安装类型来说,什么是正确的卸载方式?

谢谢,瓦尔

答案1

不久前,我在系统上遇到了同样的问题。经过一番研究,我找到了这些命令。它们很老了,但对我来说很有用。尝试按给定顺序执行这些命令:

  • sudo dpkg -P phpmyadmin
  • sudo rm -f /etc/apache2/conf.d/phpmyadmin.conf
  • sudo service apache2 restart
  • 要删除所有剩余文件,请执行sudo apt-get autoremove phpmyadmin

相关内容