LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-19-2005, 11:12 AM   #1
abridge
LQ Newbie
 
Registered: Apr 2005
Location: Louisville, Kentucky
Distribution: Suse 9.2 Pro
Posts: 23

Rep: Reputation: 15
tar confussion


I am finding it difficult to know what to do with a tar file once I download. I looked at the tutorial on this site and the tar man page. They explain how to uncompress and other specifics like that, but are you suppose to create a new directory to install into or uncompress in your home folder...etc.

Is there a trick to it or unwritten rules? Also, sometimes the ./configure doesn't alway work.

Thanks
 
Old 04-19-2005, 11:15 AM   #2
trevelluk
Member
 
Registered: Nov 2003
Location: Bristol, UK
Distribution: Debian Lenny, Gentoo (at work)
Posts: 388

Rep: Reputation: 32
You can uncompress anywhere you like (as long as you have write permission of course). As for why ./configure doesn't always work, you'll need to give more details about what you're trying to compile, and what error messages you're getting.
 
Old 04-19-2005, 11:32 AM   #3
BNI
LQ Newbie
 
Registered: Sep 2004
Distribution: Linux from Scratch 6.0, ClarkConnect server/gateway
Posts: 21

Rep: Reputation: 15
(Assuming you're a total newb here, apologies if you're not)
/me slips into lecture mode

Generally tarballs are compressed either with gzip (*.tar.gz or *.tgz) or bzip2 (*.tar.bz2)
To extract, use a terminal and cd to the directory where the file is. Then type either
<code>tar xzvf name-of-file.tar.gz</code> or <code>tar xjvf name-of-file.tar.bz2</code>. In the vast majority of cases, it then creates its own subdirectory within your current directory. Extremely poorly archived stuff (*COUGH* openoffice *COUGH*) sometimes doesn't do this, and just dumps 50 files/directories in your lap. In those rare cases you have to put the tarball in its own directory.
 
Old 04-19-2005, 11:51 AM   #4
abridge
LQ Newbie
 
Registered: Apr 2005
Location: Louisville, Kentucky
Distribution: Suse 9.2 Pro
Posts: 23

Original Poster
Rep: Reputation: 15
Yes I am a complete newbie so details are very important. So, usually, I can uncompress in my home directory, read the readme or install file, usually run ./configure w/make, make install...etc, and the program will install itself where it needs to go? Am I close?
 
Old 04-19-2005, 12:00 PM   #5
trevelluk
Member
 
Registered: Nov 2003
Location: Bristol, UK
Distribution: Debian Lenny, Gentoo (at work)
Posts: 388

Rep: Reputation: 32
Yep, that's the normal process.
 
Old 04-19-2005, 01:19 PM   #6
abridge
LQ Newbie
 
Registered: Apr 2005
Location: Louisville, Kentucky
Distribution: Suse 9.2 Pro
Posts: 23

Original Poster
Rep: Reputation: 15
Do I always need to be root when uncompressing and installing a new program?
 
Old 04-19-2005, 01:34 PM   #7
abridge
LQ Newbie
 
Registered: Apr 2005
Location: Louisville, Kentucky
Distribution: Suse 9.2 Pro
Posts: 23

Original Poster
Rep: Reputation: 15
For practice, I am trying to install the tarball for Adobe Reader 7.0. I decompressed, changed to the correct director, and read the readme file which said:

Tarball Installer:
1. Make sure you have at least 110 MB of available disk space
2. Run "tar -zxvf AdbeRdr70_linux_enu.tar.gz"
3. Run the "INSTALL" script in the "AdobeReader" directory thus
created

I see the INSTALL script but how do I run it. WHat it says in steps 1,2,3 is it for tar instructions
 
Old 04-19-2005, 01:35 PM   #8
gorzuate
LQ Newbie
 
Registered: Apr 2004
Location: IN
Distribution: Gentoo
Posts: 9

Rep: Reputation: 0
Quote:
Originally posted by BNI
...In the vast majority of cases, it then creates its own subdirectory within your current directory. Extremely poorly archived stuff (*COUGH* openoffice *COUGH*) sometimes doesn't do this, and just dumps 50 files/directories in your lap. In those rare cases you have to put the tarball in its own directory. [/B]
You can figure out if it's extremely poorly archived by using the t option: tar tzvf name-of-file.tar.gz.
 
Old 04-20-2005, 04:14 AM   #9
trevelluk
Member
 
Registered: Nov 2003
Location: Bristol, UK
Distribution: Debian Lenny, Gentoo (at work)
Posts: 388

Rep: Reputation: 32
You don't need to be root to uncompress. You usually will need to be to install.

To run that INSTALL script, just type ./INSTALL

I'd guess that Adobe Reader isn't distributed in source form, so the usual configure, make, make install won't apply.
 
  


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
how can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 03:48 AM
tar tar cvf - . | (cd /root/; tar xvf -) ewt3y Linux - General 10 02-19-2014 11:55 AM
.rpms, .tar.gz, .tgz, .src.rpm, & .tar.bz2 whoots Mandriva 10 10-18-2003 01:08 PM
problem unzipping a tar.bz2 file tar: Error is not recov jyome Linux - Software 4 09-04-2003 02:04 PM
Diferance between rpm, tar, tar.gz, scr.tar, etc mobassir Linux - General 12 08-21-2003 07:30 AM


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