Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-17-2002, 01:43 AM   #1
LQ Newbie
Registered: Oct 2002
Posts: 7

Rep: Reputation: 0
Uninstalling software thats been compiled from source

Hey, just a quick question...

How do I uninstall software that ive compiled from source? if it doesnt have a uninstall script?

My example is apache, I installed it, but now I want to install it into a new path, and I dont want binaries all over the place getting mixed up and accidently running the wrong ones without knowing ??
Old 10-17-2002, 03:40 AM   #2
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Rep: Reputation: 30
I guess there is a way to look at the install script, but I don't know how to do that, so I'll tell you what I do:

first option.... if you are going to install it in another path, what I do is this:

get this little "install-log" program through here:

then install your program again in the new path, and do "install-log <package>" afterward. This will give you a text file in /var/log/install-logs of everything that was installed in the package, then all you have to do is go through and delete the files from the previous install that are in the different path.

secon thing i'll do: do "updatedb" and then "locate <part of package name>" (maybe with a | less afterward) this will list all of the files on your system containing the part of the name that you entered... a lot of them may even be in their own directory... also in /usr/lib or something, the files will look like "lib<part of name>.so
(try to keep what you give locate kindof small, so that you have less of a chance to miss anything.)

you can also just delete the binaries, they will usually be called something similar to the program

well, there might be other, better ways, but that's what I do....

good luck
Old 10-17-2002, 05:43 AM   #3
Registered: Mar 2002
Location: London
Distribution: Red Hat 9
Posts: 302

Rep: Reputation: 30
sorry. posted in the wrong thread...
just ignore me!
Old 10-17-2002, 10:20 AM   #4
Senior Member
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
Have you tried doing "make uninstall" in the apache source directory?
Old 10-17-2002, 11:47 AM   #5
Registered: Mar 2002
Distribution: Redhat 9.0, Debian, Knoppix, YellowDog
Posts: 142

Rep: Reputation: 15
Check out make_uninstall from Excellent little utility.

Old 10-17-2002, 04:18 PM   #6
Registered: Sep 2002
Location: Novi Sad, Vojvodina
Distribution: Slackware, FreeBSD
Posts: 386

Rep: Reputation: 32
Originally posted by Flibble
Check out make_uninstall from Excellent little utility.

Also try the program named Checkinstall. What it does is it creates packages for any Linux ( tgz, deb, rpm ) and you can uninstall it as any other package

Last edited by AxeZ; 10-17-2002 at 04:20 PM.


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
Compiled Apache2 from source... emptystrings Linux - Software 1 11-17-2004 03:44 PM
Uninstalling compiled programs? (MDK 9.2) HCLogo Linux - Software 1 05-04-2004 03:35 PM
RPM vs compiled source Yell0w_c0w Linux - Software 2 03-09-2004 01:15 PM
Uninstalling Compiled Apache tackytwo Linux - Software 1 08-30-2003 02:34 PM
delete compiled source killi Slackware 8 05-15-2003 10:21 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:26 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration