How to uninstall software that was installed by "make install" [duplicate]

If I install a software by executing:

./configure
make
make install 

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


Solution 1:

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?