LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-10-2003, 07:24 PM   #1
durden2.0
Member
 
Registered: May 2003
Distribution: redhat 9.0
Posts: 113

Rep: Reputation: 15
uninstalling programs installed from .tar.gz


I have been installing lots of things from tar.gz files and just getting some much needed practice with that. However, today it occured to me that I have no clue how to correctly uninstall this sorta stuff? I have a SusE 8.2 machine and RedHat 9.0, I was wondering whats the command to do this?
 
Old 06-10-2003, 07:29 PM   #2
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
Occasionally, you can make uninstall.

Most of the time it's deleting the directory it installed to, the executable or links to it in /bin /usr/bin or some /<otherpath>/bin and it's config file somewhere in /etc.

It will give you practice in reading the configure and install files in the source code.

Last edited by fancypiper; 06-10-2003 at 07:30 PM.
 
Old 06-10-2003, 07:31 PM   #3
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57
Most good .tar.gz programs are installed with, finally, make install. Often you will be able to uninstall with make uninstall but you should also be familiar with make distclean. If you're lucky you will be given some advice in the INSTALL files, but don't hold your breath. If you're feeling adventurous, you could check out the Makefile and see what make xxxx options are available to you. Although you might not understand everything in there, Lord knows I don't, but it should be fairly easy to spot.

Hope this helps.
 
Old 06-10-2003, 07:34 PM   #4
durden2.0
Member
 
Registered: May 2003
Distribution: redhat 9.0
Posts: 113

Original Poster
Rep: Reputation: 15
Ok, let me make sure I know what you guys are talking about here. I can go into the directory where I ran "make install" and run the make uninstall thing and that will delete everything/remove all files on the entire system? I guess I was a little lost by the previous posts, sorry my n00b is showing!
 
Old 06-10-2003, 07:39 PM   #5
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57
OK, here's what I've found...

If you install something like this:
[b]./configure
make
su -c make install[/b
then you can, as root, often uninstall with make uninstall.
 
Old 06-10-2003, 07:47 PM   #6
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
As I said before "if you're lucky"

I have never been lucky.

When you get a handle on Linux, Gentoo has a fine source code package manager similar to BSDs ports system. emerge <name> installs with dependency resolution, emerge unmerge <name> uninstalls (but not it's depencencies just now).

Get at ease with the command line before deciding to switch, however.

For now, I advise you to stick to your distros available packages if you have drive space limitations. If you got the room, why not try everything though?

# Redhat links
RedHat Linux Manuals
Maximum RPM
rpmfind
Easier software management: apt4rpm - Red Carpet
RedHat 8.0 Tips & Tricks

# Redhat 7.3 down configuration commands
setup leads to several configuration tools

# Redhat 7.3 up configuration commands
Configure soundcard:
redhat-config-soundcard
Configure X server:
redhat-config-xfree86
Configure network:
redhat-config-network
 
Old 06-10-2003, 07:55 PM   #7
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,185

Rep: Reputation: 52
i've got a mild trick for that. it's kind of obvious, but you
may not have thought of it.
if you later want to delete the package and the
package has make uninstall in it, but you deleted the
source long ago, download the source, configure,
make, make install make uninstall.
downloading and compiling just to uninstall. i've done it.
 
Old 06-10-2003, 08:06 PM   #8
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57
Exclamation

Hehe! Haven't we all! Just a note to the unwary reader, however, that if you need to do this (re-download the source files just to uninstall), you will need to get the source files for the version you have installed and not the latest version. Although it might work by doing a make uninstall with the latest version, it is not recommended at all.

(edit: typos)

Last edited by Thymox; 06-10-2003 at 08:09 PM.
 
Old 06-10-2003, 10:29 PM   #9
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,751

Rep: Reputation: 272Reputation: 272Reputation: 272
checkinstall

I use checkinstall to solve this problem.

http://asic-linux.com.mx/~izto/checkinstall/

When you install a new package you do:
./configure
make
checkinstall

checkinstall will create a rpm for the program that you are installing.

To get rid of an old tar.gz application which was not installed using checkinstall go through the install again except this time use checkinstall. Then install the rpm using --replace. Then uninstall using rpm -e
 
Old 06-10-2003, 10:37 PM   #10
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
Pluck! Thanks for the link and all the fish!

Ploink! Now it's mine to show and tell.
 
Old 06-10-2003, 11:20 PM   #11
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,185

Rep: Reputation: 52
i remember downloading that 2 years ago, and i used
it a couple of times, and forgot i had it.

it was either that or something almost the same.
 
Old 11-10-2004, 01:26 PM   #12
davidrr
LQ Newbie
 
Registered: Nov 2004
Posts: 3

Rep: Reputation: 0
Lightbulb Source code package management

http://paco.sourceforge.net
 
  


Reply


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
installing/uninstalling .tar packages onegear Linux - Software 3 10-31-2004 04:39 PM
Uninstalling programs installed with WINE gamehack Slackware 4 04-30-2004 07:44 AM
Uninstalling tar.gz packages david911 Linux - Software 3 10-17-2003 07:09 AM
Uninstalling programs BajaNick Linux - Software 1 08-31-2003 09:27 PM
Uninstalling programs alofatti Linux - Newbie 3 06-20-2003 10:50 PM


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