LinuxQuestions.org
Help answer threads with 0 replies.
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, 11:40 AM   #1
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

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


What distros can extract this filetype?
slack13, and what else?
thanks
 
Old 09-03-2009, 11:45 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,157
Blog Entries: 1

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
Use
Code:
tar Jxvf file.txz
Cheers
 
4 members found this post helpful.
Old 09-03-2009, 11:47 AM   #3
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Absolut Linux
Lighthouse Pup

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

Last edited by repo; 09-03-2009 at 11:48 AM.
 
Old 09-03-2009, 11:50 AM   #4
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
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, 11:53 AM   #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 01:35 PM.
 
Old 09-03-2009, 01:06 PM   #6
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
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, 01:31 PM   #7
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

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

Rep: Reputation: 111Reputation: 111
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, 02:35 PM   #9
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

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

I think the newest Slax can also do it or what?
 
Old 09-03-2009, 08:18 PM   #10
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware (personalized Window Maker), Mint (customized MATE)
Posts: 1,309

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

Rep: Reputation: 41
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, 09:16 AM   #12
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,157
Blog Entries: 1

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
Hi,

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

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
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, 08:48 PM   #14
padeen
Member
 
Registered: Sep 2009
Location: Perth, W.A.
Distribution: Slackware, Debian, Gentoo, FreeBSD, OpenBSD
Posts: 208

Rep: Reputation: 41
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, 01:55 AM   #15
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
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 18 11-12-2015 02:11 PM
How to do search & replace on a text file--need to extract URLs from a sitemap file Mountain Linux - General 4 08-07-2015 10:52 AM
[SOLVED] .txz packages on slackware [SOLVED] michaelinux Linux - Software 4 09-04-2009 10:14 PM
Why ark in Slackware 13 doesn`t recognize .txz packages... witek Slackware 6 09-01-2009 09:10 PM
pkgtool doesn't support txz? zyli2006 Slackware 8 05-20-2009 03:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:18 PM.

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
Open Source Consulting | Domain Registration