I have installed emacs with apt-get
. I tried to remove it later on, but the binary is left.
root@ionian:/home/gauthier# apt-get --purge remove emacs
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'emacs' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@ionian:/home/gauthier# which emacs
/usr/bin/emacs
root@ionian:/home/gauthier#
(the purge shown above is not the first attempt, this is just to show that the package was already removed.)
emacs was not installed before I did apt-get install emacs
.
Any idea what is going on? Why doesn't apt-get see the binary, why does it think emacs is already uninstalled? What would have been a clean way to uninstall emacs completely?
dpkg -S /usr/bin/emacs
?dpkg-query: no path found matching pattern /usr/bin/emacs
file $(which emacs)
?