Active Topics

 



Notices


Reply
Thread Tools
Posts: 27 | Thanked: 25 times | Joined on Nov 2011 @ Germany
#1
What is the command to extract tar.xz files? also got file-roller but don't know how to use it.
 
StefanL's Avatar
Posts: 298 | Thanked: 341 times | Joined on Aug 2010 @ This world :)
#2
try this:

Code:
tar -xvzf file.tar.xz
__________________
My phone evolution: Nokia 7610 (RIP), N82 (RIP), BB9000 (RIP), N900, BB9760 (RIP), N8, BB9900, N9 64GB
Working : Python Gorillas (Maemo5) Faircrack0.50 Update (Maemo5)
Not so much : WPScrack (Maemo5)
 
Posts: 646 | Thanked: 1,124 times | Joined on Jul 2010 @ Espoo, Finland
#3
Originally Posted by StefanL View Post
try this:

Code:
tar -xvzf file.tar.xz
The tar option to extract xz archives is -J so the command would rather be:
Code:
tar -Jxvf file.tar.xz
 

The Following User Says Thank You to minimos For This Useful Post:
Posts: 27 | Thanked: 25 times | Joined on Nov 2011 @ Germany
#4
Both don't work, with tar -Jxvf file.tar.xz i got an error message with: can't find exec! with tar -xvzf file.tar.xz it says magic command. extract it now on my PC and copied it to the N900. but it should be able to do it on the device. any more ideas?
 
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#5
j is for bz2
z is for gz

You need to extract it
Code:
xz -d file.name.xz
and then untar
Code:
tar -xvf file.name
Or you may be able to do it in one step
Code:
xzcat file.name.xz | tar -xv
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 

The Following User Says Thank You to peterleinchen For This Useful Post:
Posts: 22 | Thanked: 37 times | Joined on Sep 2012
#6
Originally Posted by peterleinchen View Post
j is for bz2
z is for gz
Big "J" is for xz.

Both the "xz" application and "tar" with xz support are on my N900. I can't remember if I installed them myself...
 

The Following 3 Users Say Thank You to drcouzelis For This Useful Post:
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#7
Originally Posted by drcouzelis View Post
Big "J" is for xz.
My bad, too much case insensitive OS here ...

Originally Posted by drcouzelis View Post
Both the "xz" application and "tar" with xz support are on my N900. I can't remember if I installed them myself...
xz comes with busybox-power
and my tar is a gnu tar
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 

The Following 2 Users Say Thank You to peterleinchen For This Useful Post:
Posts: 27 | Thanked: 25 times | Joined on Nov 2011 @ Germany
#8
@ peterleinchen
Thank you very much, it works now!
@tanago
Thought this site is for helping people that maybe don't have so much knowledge about linux, not for dump answers!!!
 
Posts: 1,523 | Thanked: 1,997 times | Joined on Jul 2011 @ not your mom's FOSS basement
#9
That's what they did; they "dumped" you an answer. Really "dumb" answers are different.
 

The Following 2 Users Say Thank You to don_falcone For This Useful Post:
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#10
To be absolutely just, it was not about reading manuals here - xz is absent from nokiabox, one need busybox-power (aka real busybox) for it to work.

Sure, OP could find it himself after not-so-much hassle, but who haven't had such "oh sh|t" moments himself?

Still, tanago's comment was out of line, *especially* having in mind, how often he asks "rolleyes" type of questions, himself.

Anyway, no good reason to argue about, right? Original question got resolved, we learned something new about case sensitivity in tar (at least me and peterleinchen), everyone is happy.

/Estel
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!
 

The Following 2 Users Say Thank You to Estel For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 13:56.