maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   bz2 not being extracted , tar has no 'j' option (https://talk.maemo.org/showthread.php?t=59793)

teamer 2010-08-05 14:13

bz2 not being extracted , tar has no 'j' option
 
hi all
i cannot extract any bz2 files cuz whenever i use tar vxjf filename or tar vxf filename it says invalid j option or invalid tar magic if i omit the j option .

any clues how to unpack that thing ?

thanks

ossipena 2010-08-05 14:18

Re: bz2 not being extracted , tar has no 'j' option
 
isn't it
Code:

tar -zxvf filename.bz2
?

kwek 2010-08-05 14:23

Re: bz2 not being extracted , tar has no 'j' option
 
Quote:

Originally Posted by ossipena (Post 776579)
isn't it
Code:

tar -zxvf filename.bz2
?

No thats unpacking gzipped archives (.tar.gz)

N900' tar indeed doesnt have bzip2 compiled in.. However there is the bunzip2 available which you can use to unpack it to a .tar:

Code:

bunzip2 filename.tar.bz2
tar -xvf filename.tar


MohammadAG 2010-08-05 14:25

Re: bz2 not being extracted , tar has no 'j' option
 
Quote:

Originally Posted by ossipena (Post 776579)
isn't it
Code:

tar -zxvf filename.bz2
?

That's for tar.gz

Install tar-gnu and use gtar instead of tar.
The BusyBox tar is crippled (as are all other busybox tools)

johnel 2010-08-05 14:28

Re: bz2 not being extracted , tar has no 'j' option
 
I usually just do it in 2 steps.

unzip it first then untar the file.

kureyon 2010-08-05 16:31

Re: bz2 not being extracted , tar has no 'j' option
 
Or do it in one step without an intermediate file:

Code:

bunzip2 -dc foobar.bz2 | tar x

nardine 2012-10-07 01:53

Re: bz2 not being extracted , tar has no 'j' option
 
do this:
Code:

tar xvf file.bz2


All times are GMT. The time now is 11:41.

vBulletin® Version 3.8.8