Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-14-2006, 10:20 AM
|
#1
|
Member
Registered: Jan 2006
Location: Australia
Distribution: Slackware 12.1
Posts: 173
Rep:
|
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)
|
|
|
06-14-2006, 10:43 AM
|
#2
|
LQ Newbie
Registered: Dec 2003
Distribution: Slackware current
Posts: 27
Rep:
|
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
|
|
|
06-14-2006, 10:44 AM
|
#3
|
Member
Registered: Dec 2005
Location: ~
Distribution: Slackware -current
Posts: 467
Rep:
|
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.
|
|
|
06-14-2006, 10:45 AM
|
#4
|
Senior Member
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914
Rep:
|
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.
|
|
|
06-14-2006, 10:07 PM
|
#5
|
Member
Registered: Jan 2006
Location: Australia
Distribution: Slackware 12.1
Posts: 173
Original Poster
Rep:
|
I did make uninstall and it all worked nicely.
From now on I will do that make checkinstall, that sounds pretty cool
Thanks guys
|
|
|
06-15-2006, 03:55 AM
|
#6
|
LQ Newbie
Registered: Dec 2003
Distribution: Slackware current
Posts: 27
Rep:
|
no, not 'make checkinstall' just 'checkinstall'
./configure
make
checkinstall
once you try it, you'll love it!
Quote:
Thanks guys
|
i'm a girl
|
|
|
06-15-2006, 05:21 AM
|
#7
|
Member
Registered: Jul 2004
Distribution: Void Linux, former Slackware
Posts: 498
Rep:
|
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.
|
|
|
06-15-2006, 11:44 AM
|
#8
|
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852
|
I have been burned many times by source installs that did not have a "uninstall" target.
I don't build anything without checkinstall now.
|
|
|
06-15-2006, 11:51 AM
|
#9
|
Member
Registered: Aug 2004
Distribution: opensuse ,debian/ubuntu
Posts: 222
Rep:
|
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
|
|
|
06-15-2006, 01:45 PM
|
#10
|
HCL Maintainer
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450
Rep:
|
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.
|
|
|
07-17-2006, 03:21 AM
|
#11
|
Member
Registered: Mar 2003
Distribution: Gentoo
Posts: 232
Rep:
|
You know, I feel like I should have known about this app years ago. Funny the things you just never run into.
|
|
|
All times are GMT -5. The time now is 03:08 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|