Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    bz2 not being extracted , tar has no 'j' option

    Reply
    teamer | # 1 | 2010-08-05, 14:13 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks

     
    ossipena | # 2 | 2010-08-05, 14:18 | Report

    isn't it
    Code:
    tar -zxvf filename.bz2
    ?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    kwek | # 3 | 2010-08-05, 14:23 | Report

    Originally Posted by ossipena View Post
    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

    Edit | Forward | Quote | Quick Reply | Thanks

     
    MohammadAG | # 4 | 2010-08-05, 14:25 | Report

    Originally Posted by ossipena View Post
    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)

    Edit | Forward | Quote | Quick Reply | Thanks

     
    johnel | # 5 | 2010-08-05, 14:28 | Report

    I usually just do it in 2 steps.

    unzip it first then untar the file.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    kureyon | # 6 | 2010-08-05, 16:31 | Report

    Or do it in one step without an intermediate file:

    Code:
    bunzip2 -dc foobar.bz2 | tar x

    Edit | Forward | Quote | Quick Reply | Thanks

     
    nardine | # 7 | 2012-10-07, 01:53 | Report

    do this:
    Code:
    tar xvf file.bz2

    Edit | Forward | Quote | Quick Reply | Thanks

     
vBulletin® Version 3.8.8
Normal Logout