LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-26-2005, 01:34 PM   #1
bograt
Member
 
Registered: Jul 2004
Location: Manchester UK
Distribution: Suse
Posts: 167

Rep: Reputation: 30
Quick guide on tar


As a newbee used to zip & rar I understandably don't have a real clue how to run / install
tar files etc It appears that if I download rpm's I am given the option of instslling using yast
but I have probs with tar files etc.

Please advise on how to do it in ideot speak.
 
Old 01-26-2005, 01:36 PM   #2
unnamedman
LQ Newbie
 
Registered: Jan 2005
Location: Turkey
Posts: 14

Rep: Reputation: 0
I'll be happy too if you answer this question. I'm newbiea as you man.
 
Old 01-26-2005, 01:42 PM   #3
csfalcon
Member
 
Registered: Jun 2004
Location: MD
Distribution: Fedora Core
Posts: 269

Rep: Reputation: 31
things in rpm are already nicely packaged binary and can be installed on the system with the command
Code:
rpm -ivh <filename>.rpm
tar files usually contains the source files, which you need to compiled on your system and then installed.

to "unzip" a tar file:

if the file ends with ".tar" use:
Code:
tar xvf <filename>.tar
if the file ends with ".tar.gz" use:
Code:
tar xvzf <filename>.tar.gz
After you "unzip", look for the README file on how to compile or install the package.
 
Old 01-26-2005, 01:43 PM   #4
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
generally speaking, ( this is not always the case ), tar files are source archives. To install them, you have to extract them (we'll get to this in a minute) and build them with your system's compiler. To extract a tar file, you need to know how it was compressed. You can tell this by what extension the file has. The two most common methods is gzip (which will end in tar.gz) and bzip2 (which will end in tar.bz2).
for a gzip compressed archive:

Code:
tar -zxvf tarfile.tar.gz
will extract the contents

for a bzip2 compressed file:

Code:
tar -xvfjp tarfile.tar.bz2
will extract the contents.

The actual steps involved in building vary from package to package but in the most basic form ( I stress basic here):

./configure
make
make install

But keep in mind you kinda need to know what your doing if your upgrading libraries or the application needs to link against libraries installed on your system ( This is distribution specific, some require more steps than others).

if you use gnome/kde, then file-roller/ark will uncompress the archives for you also.
 
Old 01-26-2005, 01:44 PM   #5
bograt
Member
 
Registered: Jul 2004
Location: Manchester UK
Distribution: Suse
Posts: 167

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by unnamedman
I'll be happy too if you answer this question. I'm newbiea as you man.


Isn't it hard getting straight answers on this forum??????? you get so many varying answers you don't know where to turn.

It would be nice just to be able to download something and extract / run it like you can with win zip etc.

My heads cabaged with the tar stuff and even though yast can be used to run rpm's sometimes you dont know where it's installed it to so even though a file is on your system you can't find it. Arrrrrrrrrrrr

Last edited by bograt; 01-26-2005 at 01:48 PM.
 
Old 01-26-2005, 01:52 PM   #6
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
http://www.linuxquestions.org/questi...threadid=45094

Look at the top two sticky threads in Linux-General :)


Cheers,
Tink
 
Old 01-26-2005, 01:55 PM   #7
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
Quote:
Originally posted by bograt
Isn't it hard getting straight answers on this forum???????
I suppose it's about as hard as to use the search engine
we provide for your convenience...



Cheers,
Tink
 
Old 01-26-2005, 01:59 PM   #8
bograt
Member
 
Registered: Jul 2004
Location: Manchester UK
Distribution: Suse
Posts: 167

Original Poster
Rep: Reputation: 30
I suppose this needs to be done as root? This part I am aware of and in fact I have found you can extract to a folder then you look for the install file for the info but I get lost then. I'm trying to install an antivirus. I went to root found the directory & typed what was written it said the library file was not loaded and I tried to do this but got lost. In the install file it said do x y & z and follow instructions but didn't get that far.
 
Old 01-26-2005, 02:02 PM   #9
bograt
Member
 
Registered: Jul 2004
Location: Manchester UK
Distribution: Suse
Posts: 167

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by Tinkster
I suppose it's about as hard as to use the search engine
we provide for your convenience...


Cheers,
Tink
[mod_edit]
Sorry if I offended you it wasn't meant as a snipe. theres just so much info that finding the info that is what you need is tricky.

Sorry again thanks will check the link
[/mod_edit]


Last edited by Tinkster; 01-26-2005 at 02:10 PM.
 
Old 01-26-2005, 08:48 PM   #10
dylbyrt45
Member
 
Registered: Sep 2003
Location: Dallas
Distribution: Suse 9.1 pro
Posts: 37

Rep: Reputation: 15
You might also want to try using pinfo from the CLI, I find it easier to understand than the man pages.

yourprompt>pinfo tar
 
Old 01-27-2005, 10:56 AM   #11
bograt
Member
 
Registered: Jul 2004
Location: Manchester UK
Distribution: Suse
Posts: 167

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by dylbyrt45
You might also want to try using pinfo from the CLI, I find it easier to understand than the man pages.

yourprompt>pinfo tar
Thanks! I tried for ages to run some programs from the root ( command ) but got absolutely no where. would have pulled my hair out if I had any I'm one of these people who needs to be shown a task to learn it and whilst I have checked the info from the link above when I get to the directory a install file is in I get messages saying no such file if I dir it shows up but cant get to it Anyway won't go on will try and struggle through and you never know the light may come on at least I can use yast to install most RPM's though. but thats a bit restrictive.

Thanks for everyones advice.

 
Old 01-27-2005, 05:15 PM   #12
darkRoom
Member
 
Registered: Mar 2004
Location: Valencia, espaņa
Distribution: Slack, Gentoo, Custom
Posts: 162

Rep: Reputation: 30
If you have a problem with a command consult the man pages ie 'man tar', thats as straight an answer as you'll get
 
  


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
Quick guide to installing LFS 6.0 shotokan Linux From Scratch 2 08-03-2005 01:12 AM
Quick and dirty cryptography guide. Linux.tar.gz Linux - Security 4 03-25-2005 02:16 PM
Quick ACPI getting started guide zero79 Debian 3 12-25-2004 06:33 PM
mplayer a quick guide aus9 Slackware 1 02-18-2004 11:37 AM
Quick guide to WordStar?? stephstellar Linux - Software 3 02-19-2003 12:27 AM

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

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