Unix Technical Forum

Program for uncompressing .tar.bz2 file

This is a discussion on Program for uncompressing .tar.bz2 file within the Linux Operating System forums, part of the Unix Operating Systems category; --> Hi, I am running a distro that doesn't included the kernel source code (morphix HD install), but I need ...


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-17-2008, 05:33 PM
Aaron Samuel Huber
 
Posts: n/a
Default Program for uncompressing .tar.bz2 file

Hi, I am running a distro that doesn't included the kernel source code
(morphix HD install), but I need it to run VPN client to get wifi
access. I downloaded the kernel source but its in .tar.bz2 format and
my version of gunzip and tar doesn't seem to support this compression.
Where can I download a utility that will unpack this mess?

Thanks,
Aaron Huber
Urbana, IL
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-17-2008, 05:33 PM
Mauriat
 
Posts: n/a
Default Re: Program for uncompressing .tar.bz2 file

Aaron Samuel Huber wrote:
> Hi, I am running a distro that doesn't included the kernel source code
> (morphix HD install), but I need it to run VPN client to get wifi
> access. I downloaded the kernel source but its in .tar.bz2 format and
> my version of gunzip and tar doesn't seem to support this compression.
> Where can I download a utility that will unpack this mess?
>
> Thanks,
> Aaron Huber
> Urbana, IL


bzip2 -cd file.tar.bz2 | tar xvf -

--

Mauriat (www.mjmwired.net)
----------------------------
Remove 'NOSPAM' to email me.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-17-2008, 05:33 PM
Andreas Janssen
 
Posts: n/a
Default Re: Program for uncompressing .tar.bz2 file

Hello

Mauriat (<usenet@NOSPAMmjmwired[dot]net>) wrote:

> Aaron Samuel Huber wrote:
>> Hi, I am running a distro that doesn't included the kernel source
>> code (morphix HD install), but I need it to run VPN client to get
>> wifi
>> access. I downloaded the kernel source but its in .tar.bz2 format
>> and my version of gunzip and tar doesn't seem to support this
>> compression.
>> Where can I download a utility that will unpack this mess?

>
> bzip2 -cd file.tar.bz2 | tar xvf -


Or

tar xfjv file.tar.bz2

From the tar man page:

-j, --bzip2
filter archive through bzip2, use to decompress .bz2 files

best regards
Andreas Janssen

--
Andreas Janssen
andreas.janssen@bigfoot.com
PGP-Key-ID: 0xDC801674
Registered Linux User #267976
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-17-2008, 05:33 PM
David
 
Posts: n/a
Default Re: Program for uncompressing .tar.bz2 file

Mauriat wrote:
>
> bzip2 -cd file.tar.bz2 | tar xvf -


bzcat file.tar.bz2 | tar xv

--
Confucius: He who play in root, eventually kill tree.
Registered with The Linux Counter. http://counter.li.org/
Slackware 9.1.0 Kernel 2.4.22 SMP i686 (GCC) 3.3.2
Uptime: 30 days, 4:09, 1 user, load average: 1.24, 0.88, 0.55
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-17-2008, 05:33 PM
Nico Kadel-Garcia
 
Posts: n/a
Default Re: Program for uncompressing .tar.bz2 file


"David" <thunderbolt01@netscape.net> wrote in message
news:FIeqb.114136$Fm2.101636@attbi_s04...
> Mauriat wrote:
> >
> > bzip2 -cd file.tar.bz2 | tar xvf -

>
> bzcat file.tar.bz2 | tar xv


If bzip2 is installed, try "tar xjf filename.tar.bz2". GNU tar incorporates
both gzip and bzip2 functionality as a command-line option.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-17-2008, 05:36 PM
LEE Sau Dan
 
Posts: n/a
Default Re: Program for uncompressing .tar.bz2 file

>>>>> "Andreas" == Andreas Janssen <andreas.janssen@bigfoot.com> writes:

>>> I downloaded the kernel source but its in .tar.bz2 format and
>>> my version of gunzip and tar doesn't seem to support this
>>> compression.


Andreas> Or
Andreas> tar xfjv file.tar.bz2

Andreas> From the tar man page:

Andreas> -j, --bzip2 filter archive through bzip2, use to
Andreas> decompress .bz2 files

What did you understand when the OP says that his version of tar
didn't seem to support bz2?



--
Lee Sau Dan +Z05biGVm-(Big5) ~{@nJX6X~}(HZ)

E-mail: danlee@informatik.uni-freiburg.de
Home page: http://www.informatik.uni-freiburg.de/~danlee
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-17-2008, 05:36 PM
Bill Unruh
 
Posts: n/a
Default Re: Program for uncompressing .tar.bz2 file

LEE Sau Dan <danlee@informatik.uni-freiburg.de> writes:

]>>>>> "Andreas" == Andreas Janssen <andreas.janssen@bigfoot.com> writes:

] >>> I downloaded the kernel source but its in .tar.bz2 format and
] >>> my version of gunzip and tar doesn't seem to support this
] >>> compression.

] Andreas> Or
] Andreas> tar xfjv file.tar.bz2

] Andreas> From the tar man page:

] Andreas> -j, --bzip2 filter archive through bzip2, use to
] Andreas> decompress .bz2 files

]What did you understand when the OP says that his version of tar
]didn't seem to support bz2?

What he said was "my version of gunzip and tar" which leaves it
ambiguous.
a) he may have linus with a very old version of tar which does not have
the -j flag.
b) He may not have installed bzip2
c) He may not know about the -j flag

Clearly Andreas was answering possibility c.

You on the other hand answered none of them.

For both a) and b) make sure that you have bzip2 (and bunzip2) installed
since the bz2 files are compressed with bzip2 not gzip.

If your version of tar supports the -j flag, after bunzip2 is installed,
just do as Andreas said.
If your version of tar does NOT support the -j flag, then
either get one that does, or uncompress first
bunzip2 name.of.file.tar.bz2
which will create a tar file
name.of.file.tar
on which you can use tar -xf name.of.file.tar
to untar it.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-17-2008, 05:38 PM
Lew Pitcher
 
Posts: n/a
Default Re: Program for uncompressing .tar.bz2 file

Bill Unruh wrote:
> LEE Sau Dan <danlee@informatik.uni-freiburg.de> writes:
>
> ]>>>>> "Andreas" == Andreas Janssen <andreas.janssen@bigfoot.com> writes:
>
> ] >>> I downloaded the kernel source but its in .tar.bz2 format and
> ] >>> my version of gunzip and tar doesn't seem to support this
> ] >>> compression.
>
> ] Andreas> Or
> ] Andreas> tar xfjv file.tar.bz2
>
> ] Andreas> From the tar man page:
>
> ] Andreas> -j, --bzip2 filter archive through bzip2, use to
> ] Andreas> decompress .bz2 files
>
> ]What did you understand when the OP says that his version of tar
> ]didn't seem to support bz2?
>
> What he said was "my version of gunzip and tar" which leaves it
> ambiguous.
> a) he may have linus with a very old version of tar which does not have
> the -j flag.

IIRC, old versions of GNU tar used the -Y flag to invoke bzip2
[snip]


--
Lew Pitcher

Master Codewright and JOAT-in-training
Registered Linux User #112576 (http://counter.li.org/)
Slackware - Because I know what I'm doing.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 01-17-2008, 05:43 PM
LEE Sau Dan
 
Posts: n/a
Default Re: Program for uncompressing .tar.bz2 file

>>>>> "Lew" == Lew Pitcher <lpitcher@sympatico.ca> writes:

Lew> IIRC, old versions of GNU tar used the -Y flag to invoke
Lew> bzip2 [snip]

And I once used a version that used "-I".


--
Lee Sau Dan +Z05biGVm-(Big5) ~{@nJX6X~}(HZ)

E-mail: danlee@informatik.uni-freiburg.de
Home page: http://www.informatik.uni-freiburg.de/~danlee
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:33 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com