Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 04-21-2007, 11:03 PM   #1
LQ Newbie
Registered: Apr 2007
Distribution: Mandriva 2007 Free FC5
Posts: 4

Rep: Reputation: 0
n00b needs help with unziping/installations.

I'm using Mandriva 2007 Free and am quite the Linux n00b. I have several games that I would like to play, but I'm not quite sure what I need to do to do this. Several are .tar.tar files, some are .tar.gz files, and still others are .sh files. What are these strange designations? What do they mean? I used to be an XP script kiddy, but then Microsoft went all 'corporate' on me, so Linux extensions are new to me. Any help would be appreciated, and any information that I need to give will be done so gladly.

Comrade C.E.R.T. out-
Old 04-21-2007, 11:21 PM   #2
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Well, .tar.tar doesn't really make much sense. That would be ineffective, are you sure that is what it is?

.tar.gz is a compressed tar archive. 90% of the time this is going to contain an application in source code form, which means you need to compile it once you have extracted it. To open such a file you would do something like:

gunzip ./filename.tar.gz
tar xvf ./filename.tar
Note that the .gz extension is removed after the first command.

Now, the .sh files are executable installers. For those you would first make them executable, and then run them. Like so:

chmod +x ./
Then it would likely start an interactive installer of some sort, depending on what it actually does.
Old 04-21-2007, 11:50 PM   #3
Registered: Mar 2007
Distribution: OpenBSD-CURRENT
Posts: 485
Blog Entries: 160

Rep: Reputation: 74
Like MS3FGX has already stated, tar is a "tarball" that "glues" files together. .gz and .bz2 are extensions dealing with compression. In typical Linux fashion, you have can simply tar a bunch of files together (so they're treated as one file), or you can tar them and then compress them (like WinZip/7zip, etc...).

.sh is a shell script. It's a text file that contains shell commands to accomplish some goal (think batch files in Windows). It could be an installer, or it could be a launcher that sets environment variables (or checks system "sanity", etc...) prior to launching the actual executable.
Old 04-22-2007, 11:08 AM   #4
Registered: Oct 2005
Distribution: Ubuntu 12.04 X86_64
Posts: 960

Rep: Reputation: 35
with source code in a .tar.gz file the normal way is

$tar xvfz filename.tar.gz (this does the unziping and untaring in one line with the z swich, use j for .tar.bz2)

$ make
# make install
Old 04-22-2007, 10:39 PM   #5
LQ Newbie
Registered: Apr 2007
Distribution: Mandriva 2007 Free FC5
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for the help, I'll try those. I assume I run them in a terminal, right? As for the .tar.tar, that's what it says. Both the Sauerbraten and the BOS Wars files I downloaded from their respective sites were saved as '.tar.tar' files. I could see why this would be odd, but I'm too lazy to look into it further. Thank you all for your help, when I have another question I'll send it your way.

Comrade C.E.R.T. out-
Old 04-23-2007, 01:11 AM   #6
Registered: Nov 2006
Location: UK
Distribution: Mandriva 2007
Posts: 93

Rep: Reputation: 15
useful help on mandriva installing

I found these pages very helpful when starting out on Mandriva

This will help you find and install things easily from command line. Makes things very easy to uninstall as well. Check out urpmi commands.


this site has some useful stuff. Goodluck


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
Little help unziping a file Asagath Linux - Desktop 1 08-11-2006 11:41 AM
unziping bz2 files Rodotheos Linux - Newbie 4 04-05-2005 04:17 PM
Opening/Unziping .tar.gz files java999 Linux - Software 5 09-25-2004 11:17 AM
Problem in unziping tarballs ssmaitra Linux - Software 5 02-28-2004 12:08 PM
Unziping tar.gz flies Darkangel90 Linux - General 6 06-08-2002 04:57 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:33 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration