LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 01-19-2006, 08:32 PM   #1
SPo2
Member
 
Registered: Jun 2005
Posts: 88

Rep: Reputation: 15
How to uninstall, "Installed .tar programs?


HI

How do uninstalled .tar gz programs?
Where are they located aft installing, the folder that was created while unzipping or it does gets transfer to other directories too.?

Anyone? THanks
newbie
 
Old 01-19-2006, 08:38 PM   #2
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 62
files ending in .tar.gz are generally source archive (kinda like zip) file. Most programs do not get installed simply by untarring and unzipping such files. You have to typically compile and install them. If you have not done compiling and installing then you can just remove the folder created after unzipping. It would be more worthwhile if you mention what distro you are using. If you are using rpm or debian based distro you already have a package manager which will make installing/removing packages a breeze.

Tux,
 
Old 01-19-2006, 08:45 PM   #3
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
If you've done the whole './configure' 'make' 'make install' dance, running './configure' (if your old one isn't there), 'make' and finally 'make uninstall' it will remove all traces of the old program. If you had custom ./configure variables, you need to make sure to put those in when you're compiling for the uninstall.
 
Old 01-19-2006, 09:34 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
If `make uninstall` doesn't work, try looking for a file called Makefile. Look for the 'install' target and then delete all of the files that it adds.
 
Old 01-19-2006, 09:43 PM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
As at least one respondent pointed out, tar and gz are just compression and archiving formats. You can find a minimum of three things in a .tar archive:
A bunch of rpm files
A bunch of files + an install script
A bunch of files that allows you to compile the desired SW

How to undo the installation obviously depends on what you actually did....
 
Old 01-19-2006, 10:44 PM   #6
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
Quote:
Originally Posted by gilead
If `make uninstall` doesn't work, try looking for a file called Makefile. Look for the 'install' target and then delete all of the files that it adds.
Hello,
i do agree with you that "make uninstall" doesn't always work if the program has been installed from source after compiling it and doing all the steps like "./configure", "make", "make install" etc.
But i do not get the idea of the Makefile.
i searched for Makefile.......but there are large number of makfiles in the system.
So is there any master Makefile or should we concerned with the Makefile of the relevent program only ???
Do all installed programs have the Makefile ???

regards
 
Old 01-19-2006, 11:13 PM   #7
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Sorry - I meant the Makefile for the application. For example, when I built and installed Apache 2.0.55, I extracted the sources to /usr/local/src/httpd-2.0.55. I have a file called Makefile in /usr/local/src/httpd-2.0.55 with several make targets. Here is part of that file showing the target for installing the man pages:

Code:
install-man:
	@echo Installing man pages and online manual
	@test -d $(DESTDIR)$(mandir)      || $(MKINSTALLDIRS) $(DESTDIR)$(mandir)
	@test -d $(DESTDIR)$(mandir)/man1 || $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man1
	@test -d $(DESTDIR)$(mandir)/man8 || $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man8
	@test -d $(DESTDIR)$(manualdir)   || $(MKINSTALLDIRS) $(DESTDIR)$(manualdir)
	@cp -p $(top_srcdir)/docs/man/*.1 $(DESTDIR)$(mandir)/man1
	@cp -p $(top_srcdir)/docs/man/*.8 $(DESTDIR)$(mandir)/man8
	@(cd $(top_srcdir)/docs/manual && cp -rp * $(DESTDIR)$(manualdir))
	@(cd $(DESTDIR)$(manualdir) && find . -name ".svn" -type d -print | xargs rm -rf 2>/dev/null ) || true
The fun part is looking through files and finding out what the variables translate to on the file system. Apache is pretty simple in that if you specify --with-layout=Apache in ./configure it ends up in /usr/local/apache2. Expect to spend a fair bit of time with some apps

I think all compiled apps will have a Makefile or a makefile, but they don't always have an uninstall target or even an install target (for example imap-2004e). The trick is to document what you do so that when you go back to work on it you don't have to guess or rely on memory.

Last edited by gilead; 01-19-2006 at 11:15 PM.
 
Old 01-20-2006, 04:37 AM   #8
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
Hello,

checkinstall seems to be a better option for some particular distros.
README file for checkinstall::

Quote:
# checkinstall 1.5.3 # #
# ######################## #
# #
# Installs a compiled program from the program's source directory using #
# "make install" or any other command supplied on checkinstall's command #
# line. checkinstall will create a Slackware, RPM or Debian compatible #
# package and install it using your distribution's standard package #
# administration utilities. #
# #
#
regards
 
Old 01-20-2006, 07:58 AM   #9
SPo2
Member
 
Registered: Jun 2005
Posts: 88

Original Poster
Rep: Reputation: 15
Well,

thanks guys........
 
  


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
getting error during "tar -xvzf filename.tar.gz" b0nd Linux - Newbie 11 04-23-2005 08:50 PM
uninstalling programs installed from .tar.gz durden2.0 Linux - Newbie 11 11-10-2004 12:26 PM
Uninstall a tar.gz israel Linux - Software 5 02-01-2004 10:24 AM
libjpeg already installed... i try to uninstall... not installed... thiscompismessing Laptop2250 Linux - Software 1 11-21-2003 08:20 PM
How to uninstall tar.gz apps merlinxx Linux - General 3 03-07-2002 04:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:51 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