24

I downloaded Emacs source files, and installed it using make. After installing Emacs successfully, I manually removed the downloaded source files to save disk space. Now I want to remove Emacs and I tried to use sudo apt-get purge emacs. But it says Emacs has not been installed and will not be removed. But I can run Emacs by typing emacs in the terminal. Also the command which emacs shows the result /usr/local/bin/emacs.

Why can't apt-get detect it? How can I remove Emacs completely in this situation? My OS is Ubuntu 12.04, and my Emacs version is 24.3.1.

karel
  • 122,695
  • 134
  • 305
  • 337

9 Answers9

14

It is not enough to

sudo apt-get remove emacs

You have to do

sudo apt-get remove emacs emacs23 emacs24 emacs25 emacs26 \
                    emacs-bin-common emacs-common emacs-el 

Then

locate emacs
alper
  • 224
  • I am not sure this would help or apply to the OP. It looks like he compiled and installed from source. – haziz Dec 30 '19 at 00:33