Tuesday 22 May 2012

How to uninstall a program in Linux?

1) if installed using rpm use
        rpm -e package-name

2) if installed from source code
       make uninstall

3) If "make uninstall" not working remove manually all the files. Read Makefile to understand where it is installing the files.

4) yum remove package-name

5) sudo apt-get remove package-name ( for debian/ubuntu).

6) Use command "make -n install" and note down the steps, try to reverse the steps.

Before trying above, try using built in application "package manager" first, using this you can install/ uninstall the program.