LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-18-2009, 03:41 PM   #1
jbumgarjr
LQ Newbie
 
Registered: Jul 2006
Posts: 28

Rep: Reputation: 15
Install a tar.gz file


What do I do to install a tar.gz file?
 
Old 05-18-2009, 03:55 PM   #2
j1alu
Member
 
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Rep: Reputation: Disabled
for debian it would be:
root# gzip -d ***.tar.gz
root# tar -xvvf ***.tar
cd ***
root#./configure
root# make
root# make install

i think.

else have a look at README after unpacking.
greetings

Last edited by j1alu; 05-18-2009 at 04:30 PM. Reason: correction
 
Old 05-18-2009, 04:07 PM   #3
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Since it is a tar.gz file, you only need

Code:
tar xvzf file.tar.gz
cd to the created directory, and read the readme and install files.

However, I would suggest to use the packet manager from your distribution to install, instead of compiling.
 
Old 05-18-2009, 04:08 PM   #4
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,094

Rep: Reputation: 198Reputation: 198
You don't install a .tar.gz file, you unpack (some might say expand) it. .tar.gz means it's a compressed archive. Like a .zip file, but different compression method.


Quote:
Originally Posted by j1alu View Post
for debian it would be:
root# gzip -d ***.tar.bz
root# tar -xvvf ***.tar
You can unpack with one command:
Code:
$ tar xjvf ***.tar.bz
What you do next depends on what's inside the .tar.gz file. If it's source code you'll need to compile it (configure etc as previously suggested) but it could be pre-compiled binaries in there which you can just run.
 
Old 05-18-2009, 04:10 PM   #5
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,094

Rep: Reputation: 198Reputation: 198
Quote:
Originally Posted by arizonagroovejet View Post
You can unpack with one command:
Code:
$ tar xjvf ***.tar.bz
Sorry, what's above is correct but you have a .tar.gz file not a .tar.bz file so it's what repo said. I was quoting j1alu who had written .tar.bz for some reason.
 
Old 05-18-2009, 04:31 PM   #6
j1alu
Member
 
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Rep: Reputation: Disabled
Quote:
for some reason.
typo ?
what ever... i changed it. sorry.
 
Old 05-19-2009, 05:47 AM   #7
raghuhrcta
LQ Newbie
 
Registered: May 2009
Posts: 14

Rep: Reputation: 0
Smile

Hi,

Since it is a tar.gz file, you only need to untar the file. No need of going to install it.

The command to untar the file is

"tar -zxvf <filename.tar.gz>"

This command even work for the files with the extensions ".tgz", for these kind of files use the command

"tar -zxvf <filename.tgz>"


Regards,

Raghu.H.R
 
Old 05-19-2009, 05:58 AM   #8
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
Since it is a tar.gz file, you only need to untar the file. No need of going to install it.
And what will you do with the uncompressed files?
Most tar files need to be compiled by the user.
 
  


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 02:48 AM
Why can't I install a *.tar.gz or a *.tar.bz2 file? SkinnerC Slackware 11 12-13-2007 10:03 AM
tar.gz file did not include install file |Spec-ops Linux - Newbie 12 11-17-2005 08:25 AM
gave wrong syntax for tar as tar -cvzf file file.tgz how to recover the file gautham Linux - General 4 04-13-2005 03:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:52 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
Open Source Consulting | Domain Registration