LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices



Reply
 
Search this Thread
Old 07-10-2008, 02:36 AM   #1
as400
Member
 
Registered: Apr 2004
Location: USA
Distribution: Solaris 10 (x86) and Windows XP Pro SP2
Posts: 596

Rep: Reputation: 30
How to unpack a TAR.BZ2 file?


Hi,

I just downloaded the flashplaryer 9 for Solaris 10 X86 and the file is a TAR.BZ2.
It is located in my /EXPORT/HOME/USERNAME directory and all I need is to extract it but I dont know the commands to do it.

Please post the command, I would appreciate it.

Thx.
 
Old 07-10-2008, 03:09 AM   #2
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 59
GNUtar allows:

tar -xvf tarfile

You can add the -z option for gzip or -j for bzip2, but tar figures it out without those options.

If you don't have GNUtar, use

bzip2 -d

to decompress, then just

tar -xvf tarfile

Last edited by Mr. C.; 07-10-2008 at 03:45 AM. Reason: Fixed bzip -> bzip2 typo.
 
Old 07-10-2008, 03:40 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 Mr. C. View Post
If you don't have GNUtar, use

bzip -d
I'm correcting a typo. Actually it is bzip2 -d, or bunzip2.
 
Old 07-10-2008, 03:45 AM   #4
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 59
Yup, fixed, thanks.
 
Old 07-10-2008, 04:03 AM   #5
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,973

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
You can combine the above in 1line:
Code:
bzip2 -dc filename.tar.bz2| tar -xf -
 
  


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
Piping tar bzcat to add a file to a tar.bz2 archive DaveQB Linux - Software 0 06-02-2008 09:28 PM
TAR: Unpack file, exclude a folder Smeerbalg Linux - Software 1 01-29-2006 08:59 AM
How to unpack a bz2 file? threepennybit Linux - Software 5 12-12-2004 05:05 AM
problem unzipping a tar.bz2 file tar: Error is not recov jyome Linux - Software 4 09-04-2003 02:04 PM
How to unpack a .tar.gz2 file? ReSync Linux - Newbie 1 06-18-2002 07:43 AM


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