How do you uninstall in *nix? How do you uninstall in *nix? unix unix

How do you uninstall in *nix?


If you didn't use a package manager (rpm, apt, etc), then you probably installed from source. To install, you performed a process along the lines of ./configure && make && make install. If the application is well-behaved, that "install" make target should be coupled with an "uninstall" target. So extract the sources again, configure again (with the same paths), and make uninstall.


Generally, if you're compiling something from source, the procedure will be

$ make$ su# make install

in which case, the vast majority of programs will have an uninstall target, which will let you reverse the steps that happened during install by

$ su# make uninstall

As always, read the program's README or INSTALL files to determine what's available. In most situations you'll either install something via a package manager (which will also handle the uninstall), or you'll have invoked some kind of manual process (which should have come with a readme explaining how to uninstall it).