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) |
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 ;) |
Quote:
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. |
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. |
I did make uninstall and it all worked nicely.
From now on I will do that make checkinstall, that sounds pretty cool :D Thanks guys :) |
no, not 'make checkinstall' just 'checkinstall' :)
./configure make checkinstall once you try it, you'll love it! Quote:
|
Quote:
|
I have been burned many times by source installs that did not have a "uninstall" target.
I don't build anything without checkinstall now. |
from gcc.gnu.org/install :
Quote:
CMIWW |
Quote:
|
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:13 PM. |