LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 07-10-2008, 01: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, 02:09 AM   #2
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
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 02:45 AM. Reason: Fixed bzip -> bzip2 typo.
 
Old 07-10-2008, 02:40 AM   #3
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
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, 02:45 AM   #4
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
Yup, fixed, thanks.
 
Old 07-10-2008, 03:03 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

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


Reply



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

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

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