Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    how do you untar

    Reply
    Page 1 of 2 | 1   2   | Next
    dburr10085 | # 1 | 2008-02-19, 21:04 | Report

    sorry for the dumb question

    Edit | Forward | Quote | Quick Reply | Thanks

     
    brendan | # 2 | 2008-02-19, 21:06 | Report

    tar -xvf /path/to/your/file.tar

    or

    tar -zxvf /path/to/your/file.tar.gz

    Edit | Forward | Quote | Quick Reply | Thanks

     
    linux_author | # 3 | 2008-02-19, 21:55 | Report

    before you untar an archive, take a look:

    tar tvzf archive_name.tgz | more

    or if bzip'd:

    tar tvjf archive_name.tar.bz2 | more

    (dunno if bzip is built into busybox - where's the busybox man page for the nokia internet tablet? answer: NO DOCUMENTATION)

    Edit | Forward | Quote | Quick Reply | Thanks

     
    free | # 4 | 2008-02-19, 23:35 | Report

    and never untar as root!!

    Edit | Forward | Quote | Quick Reply | Thanks

     
    TA-t3 | # 5 | 2008-02-20, 11:45 | Report

    The initial '-' is optional in tar.
    So 'tar xvf file.tar' is the same as 'tar -xvf file.tar'.

    'x' -> extract
    'v' -> verbose (i.e. list the files as they are extracted. Without it it's silent.)
    'f''<name> -> name of file to extract from (unpack)
    't' -> list content (tv -> list verbose)
    'z' -> the tar file is compressed with gzip (e.g. .tar.gz, .tgz)
    'j' -> the tar file is compressed with bzip2 (e.g. .tar.bz2)
    'c' -> create (make) a tar archive: tar cvf newtarfile.tar <list of files to archive, or directory name etc.>
    (Add z or j if you want it compressed as you go along.)

    Note that there are some pecularities in tar's option handling: If you specify two or more parameters that take an argument, e.g. 'b' (block size) and 'f' (file/device name), then the arguments are listed together at the end: tar tbf 20 file.tar

    The busybox version of 'tar' on the N800/N810/770 is rather limited, it doesn't have that 'b' option for example. More important, it doesn't have built-in help. If you install GNU tar then just enter 'tar --help' to see the options.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to TA-t3 For This Useful Post:
    GeraldKo

     
    speedmartini | # 6 | 2008-02-27, 01:06 | Report

    Busybox will not accept "j". I am trying to unpack a bzip2 file using the command xvjf or xjf, and I also tried the above method "tvjf" to view the .tar.bz2 file. In every case Busybox is telling me that "j" is an invalid option. What am I doing wrong? Also, if I try bunzip2 from root -though the file extension is .tar.bz2 - busybox tells me it is not a bzip2 file! This is an attempt to utilize the dictionary files available for mDictionary. FYI this is on an N800 - I started off in Troubleshooting and ended up over here by searching for a relevant thread.

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by speedmartini; 2008-02-27 at 05:01.

     
    speedmartini | # 7 | 2008-02-27, 06:19 | Report

    Update - Bad File! Good heavens, I wasted about 4 hours trying to figure out what the heck I was doing wrong. Downloaded another dictionary file from Stardict, utililzed bunzip2 in the command line, and then extracted the resulting .tar file just fine!

    Edit | Forward | Quote | Quick Reply | Thanks

     
    TA-t3 | # 8 | 2008-02-27, 11:59 | Report

    Originally Posted by speedmartini View Post
    Busybox will not accept "j". I am trying to unpack a bzip2 file using the command xvjf or xjf, and I also tried the above method "tvjf" to view the .tar.bz2 file. In every case Busybox is telling me that "j" is an invalid option. What am I doing wrong? Also, if I try bunzip2 from root -though the file extension is .tar.bz2 - busybox tells me it is not a bzip2 file! This is an attempt to utilize the dictionary files available for mDictionary. FYI this is on an N800 - I started off in Troubleshooting and ended up over here by searching for a relevant thread.
    Most, if not all, non-GNU tar programs won't understand 'j', and some (not including busybox) won't understand 'z' either. The fix is to do as follows instead:

    bunzip2 -c file.tar.bz2 | tar tvf -
    (to view)
    or
    bunzip2 -c file.tar.bz2 | tar xvf -
    (to unpack)

    Ditto for 'z':
    gunzip -c file.tar.gz | tar tvf -

    (I'm so used to working on non-GNU systems that I usually do the above out of habit even when on a GNU system)

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to TA-t3 For This Useful Post:
    speedmartini

     
    qole | # 9 | 2008-06-24, 16:34 | Report

    I'm trying to figure out what comes "stock" on an OS2008 N8x0.

    I have a tarball that I want to release to the general tablet-owning public.

    Obviously, GNU tar does not come "stock", so I can't tell people to "tar xjvf", but it seems that I could gzip my archive and tell people to "tar xzvf" instead.

    Can I have some confirmation that bunzip2 comes on a stock N8x0? I could make a little script that does TA-t3's suggested command line, if I can count on bunzip2 being there.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    qwerty12 | # 10 | 2008-06-24, 16:36 | Report

    Newly flashed N800 to latest Diablo image:

    ~ $ bunzip2
    -sh: bunzip2: not found

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to qwerty12 For This Useful Post:
    qole

     
    Page 1 of 2 | 1   2   | Next
vBulletin® Version 3.8.8
Normal Logout