I had to uninstall phpmyadmin from the production server and googled for it and used this:
sudo dpkg -P phpmyadmin
Well, this worked fine, but it seems everyone else on Ubuntu is using a purge instead
sudo apt-get purge phpmyadmin
Have I done anything wrong? Any consequences I should be aware of (it is my production server after all) Are all bits of the phpmyadmin really uninstalled through dpkg -P?
dpkg
andapt-get
are 2 different ways of installing software. Basically apt-get, aptitude, and synaptic are built on top of debian's dpkg package management program. They all perform the same basic function - package management, but have some extra features. 1 of the extra features of apt-get is that it will install dependencies and dpkg does not.Regarding the -p/purge ...
The
-P
indpkg
means--purge
and will remove everything, including setttings and configuration files. From the manual:The same goes for
purge
inapt-get
.Basically it is the same option. Mind you: removal of dependencies does not happen with dpkg. apt-get does remove dependencies
Documentation from comment by Lekensteyn: