LinuxQuestions.org
Review your favorite Linux distribution.
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 08-21-2007, 10:50 AM   #1
ouncya
LQ Newbie
 
Registered: Feb 2007
Posts: 20

Rep: Reputation: 0
Install .tar


Hi Friends,

I'm new to Linux. Can any one tell me how to install ".tar.gz" file?

Thanks in advance :-)
 
Old 08-21-2007, 11:01 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Welcome to LQ!!

.tar and .gz are simply suffixes to denote certain kinds of compression and archiving. Only after extracting will you know the next steps.

First open a terminal and do:
tar -xzvf filename
this will result in a new folder (directory). cd into this and look at the contents. There normally will be some kind of README or other instructions.

But first--if you are installing SW, have you checked to make sure it is not in your package manager? If so that is the easiest method.
 
Old 08-21-2007, 11:02 AM   #3
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Rep: Reputation: 49
$ tar -xvzf saidFile.tar.gz I think, from memory. The last time I did this it created a subdirectory, in the directory in which the command was executed, and put all the stuff in there.

Alternatively,
$ gunzip saidFile.tar.gz
$ tar -xf saidFile.tar x for 'extract', f for file.
 
Old 08-21-2007, 11:02 AM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,577
Blog Entries: 14

Rep: Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969
You can use "tar tzvf <file.tar.gz>" to see the contents of the file.

You can use "tar xzvf <file.tar.gz>" to extract the contents of the file.

file.tar.gz being replaced by the actual name of the file you want to extract of course.

Typically you would run the extract. One (or more) of the files should be "readme" (or README or Readme - linux is case sensitive so these are different names) and may have suffixes like readme.first. You can read that file and it should contain instructions for how to install the package. If the package is a source distribution it typically goes something like:
configure - Command sets up the makefile(s) based on your system's setup
make - Compiles the source for your system based on the configure you did
make install - Installs the software.

It DOES however vary so it is very important to read the readme files or the instructions from the site you downloaded the tar.gz from. For example the Firefox.tar.gz doesn't contain any instructions so you have to figure it out (or look at the post I did about Firefox explaining it some time back) for yourself.
 
  


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
how to install .tar.gz and .tar.bz and .src.rpms gadekishore Linux - Software 3 08-06-2010 06:02 PM
BackUp & Restore with TAR (.tar / .tar.gz / .tar.bz2 / tar.Z) asgarcymed Linux - General 5 12-31-2006 03:53 AM
How to INSTALL softwares with *.tar.gz or *.tar.tgz extension On SLACKWARE 10.2 DdOs Linux - Software 4 03-20-2006 02:54 AM
how to install .tar.bz and src.rpms and tar.gz files gadekishore Linux - Software 1 10-12-2005 09:09 PM


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