LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-14-2006, 10:20 AM   #1
hsimah
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Slackware 12.1
Posts: 173

Rep: Reputation: 30
uninstalling stuff compiled from source


I have installed various drivers and applications on my slack machine to get it running how I like it. I do the basic ./configure make make install routine with them all. Tonight I have been tackling Bluetooth support, and I have made a bit of a mess! I have all the sources from which I installed, but I was wondering how to uninstall the files so I can start again.

Is there a simple way to do it (like removing packages easy) or do I have to hunt down the files copies to various locations when I ran make install?

I have found out how to do it in Red Hat, Mandrake, and Debian, but nothing for Slackware (ie not apt-get or rpm help)
 
Old 06-14-2006, 10:43 AM   #2
$in
LQ Newbie
 
Registered: Dec 2003
Distribution: Slackware current
Posts: 27

Rep: Reputation: 15
go in the sources directory and do make uninstall.

next time when installing from source you can try checkinstall (instead of make install just type checkinstall). it creates a package from the source and installs it. later you can easily remove it with removepkg
 
Old 06-14-2006, 10:44 AM   #3
MannyNix
Member
 
Registered: Dec 2005
Location: ~
Distribution: Slackware -current
Posts: 467

Rep: Reputation: 55
Quote:
Originally Posted by hsimah
Is there a simple way to do it (like removing packages easy) or do I have to hunt down the files copies to various locations when I ran make install?
I guess you answered your own question

Next time you ./configure make make install
try ./configure make checkinstall instead http://slackware.it/en/pb/search.php...q=checkinstall
http://asic-linux.com.mx/~izto/checkinstall/
That way checkinstall will install your program and create a package that you can save for another time, pkgtool will see it, and let you install/remove it, or the installpkg removepkg way.
 
Old 06-14-2006, 10:45 AM   #4
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
make uninstall

Every once in a while, that won't work. If you didn't use installwatch or something similar when you installed then you'll have to manually hunt down all the files.
 
Old 06-14-2006, 10:07 PM   #5
hsimah
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Slackware 12.1
Posts: 173

Original Poster
Rep: Reputation: 30
I did make uninstall and it all worked nicely.

From now on I will do that make checkinstall, that sounds pretty cool

Thanks guys
 
Old 06-15-2006, 03:55 AM   #6
$in
LQ Newbie
 
Registered: Dec 2003
Distribution: Slackware current
Posts: 27

Rep: Reputation: 15
no, not 'make checkinstall' just 'checkinstall'

./configure
make
checkinstall

once you try it, you'll love it!


Quote:
Thanks guys
i'm a girl
 
Old 06-15-2006, 05:21 AM   #7
dunric
Member
 
Registered: Jul 2004
Distribution: Void Linux, former Slackware
Posts: 498

Rep: Reputation: 100Reputation: 100
Quote:
Originally Posted by hsimah
I did make uninstall and it all worked nicely.
So you have been lucky. Many Makefiles are not written so properly. As already mentioned, installation by packages solely is the way.
 
Old 06-15-2006, 11:44 AM   #8
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
I have been burned many times by source installs that did not have a "uninstall" target.

I don't build anything without checkinstall now.
 
Old 06-15-2006, 11:51 AM   #9
hottdogg
Member
 
Registered: Aug 2004
Distribution: opensuse ,debian/ubuntu
Posts: 222

Rep: Reputation: 30
from gcc.gnu.org/install :

Quote:
Please note that GCC does not support `make uninstall' and probably won't do so in the near future as this would open a can of worms. Instead, we suggest that you install GCC into a directory of its own and simply remove that directory when you do not need that specific version of GCC any longer, and, if shared libraries are installed there as well, no more binaries exist that use them.
is this good tips?
CMIWW
 
Old 06-15-2006, 01:45 PM   #10
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 79
Quote:
Originally Posted by dunric
So you have been lucky. Many Makefiles are not written so properly. As already mentioned, installation by packages solely is the way.
Yes. In addition to not having an `uninstall' target, sometimes they do have an `uninstall' target, but it makes bad assumptions. By doing this, it ends up either leaving traces behind, or removing stuff used by other distros. Always be careful with source installs.
 
Old 07-17-2006, 03:21 AM   #11
uglydot
Member
 
Registered: Mar 2003
Distribution: Gentoo
Posts: 232

Rep: Reputation: 30
You know, I feel like I should have known about this app years ago. Funny the things you just never run into.
 
  


Reply

Tags
uninstall


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
working out what stuff has been compiled into kernel TreeHugger Linux - Software 1 11-24-2004 08:54 AM
Uninstalling compiled programs? (MDK 9.2) HCLogo Linux - Software 1 05-04-2004 03:35 PM
Uninstalling stuff DevilSlayer Linux - Newbie 4 03-21-2004 07:32 AM
Uninstalling Compiled Apache tackytwo Linux - Software 1 08-30-2003 02:34 PM
Uninstalling software thats been compiled from source burt Linux - Software 5 10-17-2002 04:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:08 PM.

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