LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-22-2007, 12:03 AM   #1
C.E.R.T.
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-22-2007, 12:21 AM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
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:

Code:
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:

Code:
chmod +x ./filename.sh
./filename.sh
Then it would likely start an interactive installer of some sort, depending on what it actually does.
 
Old 04-22-2007, 12:50 AM   #3
rocket357
Member
 
Registered: Mar 2007
Location: 127.0.0.1
Distribution: OpenBSD-CURRENT
Posts: 485
Blog Entries: 159

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 choice...you 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, 12:08 PM   #4
dasy2k1
Member
 
Registered: Oct 2005
Location: 127.0.0.1
Distribution: Ubuntu 12.04 X86_64
Posts: 958

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)

$./configure
$ make
# make install
 
Old 04-22-2007, 11:39 PM   #5
C.E.R.T.
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, 02:11 AM   #6
paul123
Member
 
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

http://easyurpmi.zarb.org/

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

and

http://ubuntuguide.org/wiki/Mandriva

this site has some useful stuff. Goodluck
 
  


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


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