LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Source uninstall with 'make uninstall' HOWTO! (http://www.linuxquestions.org/questions/linux-newbie-8/source-uninstall-with-make-uninstall-howto-230225/)

Creeps 09-13-2004 06:23 PM

Source uninstall with 'make uninstall' HOWTO!
 
i cant figure out the make uninstall command to remove a source installed program.......

ceedeedoos 09-13-2004 06:27 PM

well if you go into the directory of the program you compiled, you just type
Code:

make uninstall
if that doesn't work, there is probably no rule for uninstall in the makefile (check the README and INSTALL files for more info).

If I were you, I'd use checkinstall when compiling from source :-)

Creeps 09-13-2004 06:30 PM

oh okay. the thing i read for uninstalling told me to run make uninstall in the directory that the source file was in which was my root/Desktop...

thanks i'll try it out.

foo_bar_foo 09-14-2004 12:13 AM

yea he means the source directory as well

unfortunately not all --(very few)-- packages or packagers, to be more to the point, go to the trouble of giving you a target 'uninstall' (in some cases 'deinstall')....

so if make uninstall doesn't work you have to do it by hand
a trick i use sometimes is to run make install again and carefully examine the output
(if it's comphensible) to find all the files to remove or at least get some clue
another trick if you think you might want to wack something later is to do -prefix=/opt/someplace/unique
when you configure it so at least you can find some of it (not all of it) in one folder later for whacking.
but that doesn't help now huh ?

and yes checkinstall is a very cool tool for compiled systems so you can still use a package manager
to uninstall stuff.

minm 09-14-2004 08:23 AM

so if i were to make install the program again, and i delete every file It outputs, it's basically gone correct?

scuzzman 09-14-2004 10:41 AM

Basically yes. Because Linux doesn't make use of a registry, there is no need for complicated uninstall scripts.

realjustin 09-14-2004 12:03 PM

And if the program was run by any user, it will often create a .DIRECTORY in your home directory. If you installed say Return to Castle Wolfenstein then the directory would be .wolf. These often do not uninstall automatically, and don't show up when you make, so check your user's home directory if you want a true uninstallation. Use la -la to find it.


All times are GMT -5. The time now is 05:55 AM.