LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 09-03-2009, 12:40 PM   #1
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,084

Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336
How to extract a .txz file?


What distros can extract this filetype?
slack13, and what else?
thanks
 
Old 09-03-2009, 12:45 PM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,975

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
Use
Code:
tar Jxvf file.txz
Cheers
 
2 members found this post helpful.
Old 09-03-2009, 12:47 PM   #3
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,516

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
Absolut Linux
Lighthouse Pup

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

Last edited by repo; 09-03-2009 at 12:48 PM.
 
Old 09-03-2009, 12:50 PM   #4
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,084

Original Poster
Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336
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...?
 
Old 09-03-2009, 12:53 PM   #5
RaptorX
Member
 
Registered: Jun 2009
Location: Emden, Germany
Distribution: Slackware 12.2, Slax 6.1
Posts: 254

Rep: Reputation: 37
@bathory
correct

@repo
thats another solution

Last edited by RaptorX; 09-03-2009 at 02:35 PM.
 
Old 09-03-2009, 02:06 PM   #6
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Thanks I needed to know too I used to use something like 'xv -cd *.txz | tar -xf -', but that's a bit long.
 
Old 09-03-2009, 02:31 PM   #7
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,084

Original Poster
Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336
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
 
Old 09-03-2009, 03:21 PM   #8
lumak
Member
 
Registered: Aug 2008
Location: Phoenix
Distribution: Arch
Posts: 799
Blog Entries: 32

Rep: Reputation: 109Reputation: 109
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.
 
Old 09-03-2009, 03:35 PM   #9
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,084

Original Poster
Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336
Thanks lumak
Thanks everyone

I think the newest Slax can also do it or what?
 
Old 09-03-2009, 09:18 PM   #10
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware, Mint
Posts: 1,241

Rep: Reputation: 196Reputation: 196
That's right. Slax 6.1.2 manages with TXZ files.
 
Old 02-25-2010, 10:03 AM   #11
padeen
Member
 
Registered: Sep 2009
Location: Perth, W.A.
Distribution: Slackware 14, Debian 7, FreeBSD, OpenBSD
Posts: 182

Rep: Reputation: 35
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
 
Old 02-25-2010, 10:16 AM   #12
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,975

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
Hi,

Are you sure you're using tar 1.22 and not an older version? What gives
Code:
tar --version
 
Old 02-25-2010, 10:42 AM   #13
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
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.
 
1 members found this post helpful.
Old 02-27-2010, 09:48 PM   #14
padeen
Member
 
Registered: Sep 2009
Location: Perth, W.A.
Distribution: Slackware 14, Debian 7, FreeBSD, OpenBSD
Posts: 182

Rep: Reputation: 35
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.
 
Old 02-28-2010, 02:55 AM   #15
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to extract spec file from rpm file nayankk Programming 16 11-12-2009 02:26 AM
[SOLVED] .txz packages on slackware [SOLVED] michaelinux Linux - Software 4 09-04-2009 11:14 PM
Why ark in Slackware 13 doesn`t recognize .txz packages... witek Slackware 6 09-01-2009 10:10 PM
pkgtool doesn't support txz? zyli2006 Slackware 8 05-20-2009 04:56 PM
How to do search & replace on a text file--need to extract URLs from a sitemap file Mountain Linux - General 3 04-05-2009 02:22 PM


All times are GMT -5. The time now is 08:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration