LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-25-2004, 03:52 PM   #1
zeviddalop
Member
 
Registered: Sep 2004
Location: bozeman, montana
Distribution: mandrake
Posts: 32

Rep: Reputation: 15
opening tar files


hi, still a newbie, and wondering what the command is to open a tar file. i'm using mandrake. thanks.
 
Old 10-25-2004, 03:56 PM   #2
emathias
LQ Newbie
 
Registered: Oct 2004
Distribution: Gentoo
Posts: 24

Rep: Reputation: 15
if the file is just .tar you have to use: (just concatenated)
% tar -xf your_file.tar

but if it is .tar.gz you have to use (concatenated and zipped)
% tar -xzf your_file.tar.gz
 
Old 10-25-2004, 04:02 PM   #3
Getafix
LQ Newbie
 
Registered: Oct 2004
Location: Israel
Distribution: Debian, CentOS
Posts: 19

Rep: Reputation: 0
Why are you using tar in mandrake what about an rpm?
 
Old 10-25-2004, 04:34 PM   #4
vasudevadas
Member
 
Registered: Jul 2003
Location: Bedford, UK
Distribution: Slackware 11.0, LFS 6.1
Posts: 519

Rep: Reputation: 30
Don't discourage the OP, tar is a necessary tool to learn.
 
Old 10-25-2004, 07:08 PM   #5
sirpimpsalot
Member
 
Registered: Feb 2004
Posts: 141

Rep: Reputation: 15
and isnt it almost always better to install from souce code?
 
Old 10-25-2004, 08:27 PM   #6
mcd
Member
 
Registered: Aug 2003
Location: Boulder, CO
Distribution: Slackware, RHEL, CentOS
Posts: 825

Rep: Reputation: 33
Quote:
and isnt it almost always better to install from souce code?
well, most of the time yes. i would certainly recommend it, with a few reservations. organization is probably the biggest problem. when you install from source it's very hard to keep track of what you installed and where it all is, and if you later decide to uninstall something it can be a real pain for that reason. i use slackware, which has a tool called slackpkg to keep track of all that. it still installs things from source, but when you get .tgz, where normally you would run

./configure
make
make install

instead you run

./configure
checkinstall
slackpkg install youprogram-3.4.tgz


i think, i may be confusing some of the syntax, but anyway, it's been pretty easy to use and really made installing from source a whole lot less hassle and more fun. now i can type slackpkg and get a list of every package installed on my system, and removing one is one click away. if you're not using slackware, then i'd look into swaret or wget or something similar. i haven't tried those, though.


EDIT: whoops! just read over your post again and you are most definitely not using slackware. do some research on swaret, that's probably your best bet for mandrake, but as a word of advice: i started on mandrake too, and it was great for getting my feet wet and all that. if you're into installing source packages on the command line though, there's a good chance you're interested in _learning linux_, in which case, once you're comfortable in mandrake, throw it out and install slackware. that's what i did, and i've never looked back. just my two cents.

Last edited by mcd; 10-25-2004 at 08:30 PM.
 
  


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
Not successful in opening *.tar.gz files Erik_the_Red Linux - Newbie 3 05-31-2005 11:04 AM
Opening of a tar.bz2 file Gins Linux - General 8 04-08-2005 04:42 PM
Opening a .tar file njschroe Linux - Software 1 02-02-2005 01:56 PM
Opening/Unziping .tar.gz files java999 Linux - Software 5 09-25-2004 12:17 PM
Opening .tar.bz2 files dominique Linux - Newbie 7 11-30-2001 03:41 AM


All times are GMT -5. The time now is 09:12 PM.

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