-   Linux - General (
-   -   How to extract a .txz file? (

linus72 09-03-2009 12:40 PM

How to extract a .txz file?
What distros can extract this filetype?
slack13, and what else?

bathory 09-03-2009 12:45 PM


tar Jxvf file.txz

repo 09-03-2009 12:47 PM

Absolut Linux
Lighthouse Pup :-)

linus72 09-03-2009 12:50 PM

yep repo i'm in LH pup booting off hd now and it works
I right-clicked on the txz in rox and selected extract-txz

I'm remastering pmagic-4.5 which uses this file format for pkgs too
but can't extarct them...?

RaptorX 09-03-2009 12:53 PM


thats another solution

H_TeXMeX_H 09-03-2009 02:06 PM

Thanks I needed to know too I used to use something like 'xv -cd *.txz | tar -xf -', but that's a bit long.

linus72 09-03-2009 02:31 PM

heres why I needed to extract txz files
thats pmagic-4.5 remaster with gkrellm and flash 10 and lm_sensors
all txz pkg I hard-installed into the pmagic-4.5.sqfs

gkrellm "Aliens" theme

lumak 09-03-2009 03:21 PM

More Information
txz is just a tar.xz file. GNU tar has built in ability to figure out most compression methods and will use the appropriate programs simply by just typing

tar xf your_file.txz
that's 'tar' 'decompress' 'file' 'your file name'

This only works with GNU tar which should be on all GNU/Linux distros. Additionally, you need to have to have the xz package. On slackware 13.0 this is xz-4.999.8beta

if tar doesn't recognize the compression format AND you have an appropriate program to decompress the file, you can even do

tar xf your_file.txz --use-compress-program xz
that is assuming again GNU tar and the compression program accepts a '-d' argument to decompress files.

linus72 09-03-2009 03:35 PM

Thanks lumak
Thanks everyone

I think the newest Slax can also do it or what?

w1k0 09-03-2009 09:18 PM

That's right. Slax 6.1.2 manages with TXZ files.

padeen 02-25-2010 10:03 AM

Sorry to resurrect an old thread. I've just done the upgrade from 12.2.

I want to list the files in a txz archive. I try `tar Jtf etc.txz`, tar replies that J is an unknown option. I'm using tar 1.22, which slackpkg tells me is the correct version for 13.0.

I could use -use-compress-program, but that's an awful lot of typing for such a simple thing.

Any ideas? Especially on why my 13.0 tar doesn't recognise option 'J'.


bathory 02-25-2010 10:16 AM


Are you sure you're using tar 1.22 and not an older version? What gives

tar --version

H_TeXMeX_H 02-25-2010 10:42 AM

It does recognize the J option, I'm using 13.0 and the same version of tar 1.22, and it works.

For example:


tar -xJf kernel-source-
works fine, this is the only txz I had on hand to test.

padeen 02-27-2010 09:48 PM

Aaaargh. Tar's option J does work, but I didn't read the error msg fully. It was actually xz complaining about the file format, it wasn't tar complaining about "J".

I've given myself a good kicking for wasting your time.

H_TeXMeX_H 02-28-2010 02:55 AM

Well, no time is really wasted here, maybe someone else has had a similar problem.

All times are GMT -5. The time now is 03:23 PM.