LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 04-09-2003, 04:35 PM   #1
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 47
uninstalling programs from source


Is there an easy or automatic way to uninstall a program you compiled from source?

I always want to uninstall a program before reinstalling it, but I dont feel like finding and deleting every directory. Thats the one thing I like about packages, easy to uninstall.
 
Old 04-09-2003, 04:43 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
These days most source-tarballs will
also implement a "make uninstall", which
of course means that you're not supposed
to kill your source-directory after an install :}

Also, there's a few packages out there
that will allow you to keep track of installations,
do a search on the site (since I can't remember
the names of those) ;)

Cheers,
Tink
 
Old 04-09-2003, 04:53 PM   #3
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
try checkinstall

Some tarballs come with a make command to uninstall themselves, most do not. I
solved this problem by using checkinstall to create RPM packages from tarballs.
You do the compile as normal. Instead of issuing make install you issue
checkinstall. checkinstall does the make install command for you. It also
creates and installs a RPM package. If you want to uninstall the package you
can do so with rpm. You can find checkinstall at:


http://asic-linux.com.mx/~izto/checkinstall/
 
Old 04-09-2003, 06:13 PM   #4
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Original Poster
Rep: Reputation: 47
Slackware doesnt use RPMs. Ill check for a make uninstall though, Ive been deleting source dirs, oh well.
 
Old 04-13-2003, 01:33 AM   #5
Wynd
Member
 
Registered: Jul 2001
Distribution: Slackware 12
Posts: 511

Rep: Reputation: 32
checkinstall can do Slackware and Debian packages as well as RPMs
 
Old 04-29-2003, 12:36 PM   #6
makai_wi
Member
 
Registered: Nov 2002
Location: Thiensville, WI, USA
Distribution: RedHat Linux 9
Posts: 85

Rep: Reputation: 15
Do you think if I creat an rpm using checkinstall and then install it and uninstall it I can remove already installed software? If I can do I need to have any flags forcing the replacement of files?
 
Old 04-29-2003, 01:34 PM   #7
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
uninstall with checkinstall

Yes, I have used checkinstall to uninstall software originally installed with make install using the method you describe. I don't think that forcing the install is necessary. When you do an rpm -e it will remove whatever is there.

Last edited by jailbait; 02-14-2004 at 09:13 AM.
 
Old 04-29-2003, 01:37 PM   #8
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
second thoughts

If you do force the install I don't think that it will hurt anything.
 
Old 02-14-2004, 08:15 AM   #9
banerji
LQ Newbie
 
Registered: Feb 2004
Distribution: Fedora Core 2 (Tettnang)
Posts: 21

Rep: Reputation: 15
I had a similar question, but decided to check out this thread first. I recommend RPMs, but "make uninstall" works just find if the source directories are not deleted. However, I don't know about how to uninstall stuff if the source were deleted.
 
Old 02-14-2004, 09:16 AM   #10
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"However, I don't know about how to uninstall stuff if the source were deleted."

If you want to use make uninstall then unpack the tarball agian, cd to the proper directory, and make uninstall.

Or you can unpack the tarball, use checkinstall to install the package as a rpm, then rpm -e to remove the package.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
  


Reply



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
Uninstalling programs? scripts Linux - Newbie 3 12-26-2004 03:14 AM
uninstalling programs fuelinux Linux - Newbie 9 10-31-2003 07:00 AM
Uninstalling programs alofatti Linux - Newbie 3 06-20-2003 09:50 PM
continued from 'uninstalling programs from source' makai_wi Linux - Software 3 04-29-2003 05:38 PM
uninstalling programs mystic Linux - Software 30 03-25-2003 06:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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