If I install a software by executing:

make install 

Is there a generic way to uninstall it (like sudo apg-get remove)?


Usually you can just use:

sudo make uninstall

since app was installed as root.

But this will work only if the developer of the package has taken care of making a good uninstall rule.

You can also try to get a look at the steps used to install the software by running:

make -n install

And then try to reverse those steps manually.

In the future to avoid that kind of problems try to use checkinstall instead of make install whenever possible (AFAIK always unless you want to keep both the compiled and a packaged version at the same time). It will create and install a deb file that you can then uninstall using your favorite package manager.

make clean usually cleans the building directories, it doesn't uninstall the package. It's used when you want to be sure that the whole thing is compiled, not just the changed files.

[Source: If I build a package from source how can I uninstall or remove completely?

  • I believe make is always run as root? – George Udosen Jul 26 '17 at 10:50
  • 1
    @George ./configureand make are normally run as current user, whereas install is run as sudo make install since it will need access to /usr/bin or /usr/local/bin and/or other system directories. – Soren A Jul 26 '17 at 11:03
  • Yes @SorenA I know, I noticed that answer said if run as root, make install is always run as root. so that part isn't necessary. Will update answer. – George Udosen Jul 26 '17 at 11:05

Not the answer you're looking for? Browse other questions tagged or ask your own question.