Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-13-2004, 05:23 PM   #1
Registered: Aug 2004
Location: Louisville, KY
Distribution: SlackWare 10.0
Posts: 49

Rep: Reputation: 15
Source uninstall with 'make uninstall' HOWTO!

i cant figure out the make uninstall command to remove a source installed program.......
Old 09-13-2004, 05:27 PM   #2
Registered: Aug 2003
Location: Antwerp, Belgium
Distribution: Slackware 10.0, Mandrake 10.1
Posts: 174

Rep: Reputation: 36
well if you go into the directory of the program you compiled, you just type
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 :-)
Old 09-13-2004, 05:30 PM   #3
Registered: Aug 2004
Location: Louisville, KY
Distribution: SlackWare 10.0
Posts: 49

Original Poster
Rep: Reputation: 15
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.
Old 09-13-2004, 11:13 PM   #4
Senior Member
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
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.
Old 09-14-2004, 07:23 AM   #5
Registered: Jun 2003
Location: Canada
Distribution: suse 9.2
Posts: 582

Rep: Reputation: 30
so if i were to make install the program again, and i delete every file It outputs, it's basically gone correct?
Old 09-14-2004, 09:41 AM   #6
Senior Member
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
Basically yes. Because Linux doesn't make use of a registry, there is no need for complicated uninstall scripts.
Old 09-14-2004, 11:03 AM   #7
Registered: Aug 2004
Location: /dev/null
Distribution: Slack 10, Debian
Posts: 99

Rep: Reputation: 15
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Howto Uninstall Noatun fortezza Linux - Software 1 11-02-2005 02:17 AM
uninstall from src if no make uninstall dtra Linux - Software 3 04-29-2005 09:13 AM
installing software from source, make uninstall question darkleaf Linux - Software 2 08-19-2004 04:18 PM
HOWTO uninstall the kernel 2.6.0 (not rpm). NAKED_DEXTER Linux - Newbie 4 03-07-2004 06:47 PM
Uninstall without make uninstall zynor Linux - Software 3 08-23-2003 10:00 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:36 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration