LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 11-08-2008, 09:24 AM   #1
wstay
Member
 
Registered: Aug 2008
Posts: 61

Rep: Reputation: 15
How to extract and install from .tar.gz and .tar.bz2


I need to install from .tar.gz and .tar.bz2
How can I extract and install from these two files type.
Any help would be much appreciated.
 
Old 11-08-2008, 09:30 AM   #2
klearview
Member
 
Registered: Aug 2006
Location: London
Distribution: Debian, Kubuntu
Posts: 572

Rep: Reputation: 75
tar.gz/bz2 is an archive.

Extract it:

tar xvf package.tar.gz

Go into created directory.

cd package

Read README or INSTALL file usually provided in that directory:

cat README | less.

Then usual steps would be:

./configure

make

make install

But this may vary - read instructions!
 
Old 11-08-2008, 10:24 AM   #3
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
Quote:
Originally Posted by klearview View Post
tar.gz/bz2 is an archive.

Extract it:

tar xvf package.tar.gz
Well... to uncompress a gzipped archive using the tar command, you have to add the -z option:
Code:
tar zxf archive.tar.gz
whereas to uncompress a bzipped archive you have to add the -j option:
Code:
tar jxf archive.tar.bz2
Regarding the installation issues, I agree with klearview: read the README and INSTALL files inside the archive itself and look for any specific issue related to your operating system and/or the built environment (compilers, type of CPU and so on...). Always check the developer's web site to find out more specific information about the requirements and the installation procedure.

As a general overview, you can look at this sticky thread, here at LQ.
 
Old 11-08-2008, 10:42 AM   #4
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Actually, if the version of tar you're using is sufficiently new, you don't even need to specify the 'j' or 'z' - tar xf filename will do it.
 
Old 11-08-2008, 11:14 AM   #5
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
Quote:
Originally Posted by Nylex View Post
Actually, if the version of tar you're using is sufficiently new, you don't even need to specify the 'j' or 'z' - tar xf filename will do it.
You're right, sorry. I stand corrected.
 
  


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
BackUp & Restore with TAR (.tar / .tar.gz / .tar.bz2 / tar.Z) asgarcymed Linux - General 5 12-31-2006 03:53 AM
extract 1 file out of a .tar.bz2 oldsko0l Linux - Software 7 10-15-2006 07:14 PM
tar.bz2 Fails To Extract carlosinfl Linux - General 6 10-16-2005 01:33 PM
extract .tar.bz2 EcceVery Debian 3 11-24-2004 01:39 PM
How to extract tar.bz2 files? akihandyman Linux - Newbie 3 12-21-2003 04:17 PM


All times are GMT -5. The time now is 04:18 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration