LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to extract a .txz file? (http://www.linuxquestions.org/questions/linux-general-1/how-to-extract-a-txz-file-752436/)

linus72 09-03-2009 11:40 AM

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

bathory 09-03-2009 11:45 AM

Use
Code:

tar Jxvf file.txz
Cheers

repo 09-03-2009 11:47 AM

Absolut Linux
Lighthouse Pup

http://www.linuxquestions.org/questi...5/#post3628909 :-)

linus72 09-03-2009 11:50 AM

Thanks
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 11:53 AM

@bathory
correct

@repo
thats another solution

H_TeXMeX_H 09-03-2009 01: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 01:31 PM

see
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
http://multidistro.com/pmagic/45.png

gkrellm "Aliens" theme

lumak 09-03-2009 02: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
Code:

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
Code:

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 02:35 PM

Thanks lumak
Thanks everyone

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

w1k0 09-03-2009 08:18 PM

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

padeen 02-25-2010 09: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'.

Thanks,
Nick

bathory 02-25-2010 09:16 AM

Hi,

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

tar --version

H_TeXMeX_H 02-25-2010 09: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:

Code:

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

padeen 02-27-2010 08: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 01: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 01:07 PM.