LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-21-2014, 08:31 AM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Rep: Reputation: 76
.xz files: a utility to decompress it?


Hi: I tried with gzip and bzip2 but they gave errors.
 
Old 01-21-2014, 08:34 AM   #2
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,545

Rep: Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313
Quote:
Originally Posted by stf92 View Post
Hi: I tried with gzip and bzip2 but they gave errors.
Use the 'xz' tool. It's been in Slackware since version 13.0 and will already be installed since it's used to unpack the Slackware packages.

To use it:

xz -d <file.xz>
 
1 members found this post helpful.
Old 01-21-2014, 08:37 AM   #3
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Thanks for your answer, but wasn't gzip enough complication for the user to make it greater? Gzip manual: slightly over a hundred lines. xz: over a thousand.

Last edited by stf92; 01-21-2014 at 08:38 AM.
 
Old 01-21-2014, 09:03 AM   #4
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,232

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
If the files are tar.xz, then just use tar.

Code:
tar xf whatever.tar.xz
 
Old 01-21-2014, 09:21 AM   #5
qweasd
Member
 
Registered: May 2010
Posts: 621

Rep: Reputation: Disabled
How about ark? Its man is 104 lines. Not that I personally consider it a strength: a longer manual is probably longer because it's more thorough.
 
Old 01-21-2014, 09:23 AM   #6
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,545

Rep: Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313
Quote:
Originally Posted by stf92 View Post
Thanks for your answer, but wasn't gzip enough complication for the user to make it greater? Gzip manual: slightly over a hundred lines. xz: over a thousand.
Given that I gave the answer - xz -d to decompress, and another poster gives an answer to uncompress tar archives compressed with xz, I don't know what your reply is supposed to mean.
 
1 members found this post helpful.
Old 01-21-2014, 10:01 AM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by stf92 View Post
Thanks for your answer, but wasn't gzip enough complication for the user to make it greater? Gzip manual: slightly over a hundred lines. xz: over a thousand.
Usually tools are validated by its intended use, not by the length of the manual. xz offers much greater compression, that is why it is used, not because the man-page may be longer or shorter.
 
Old 01-21-2014, 10:32 AM   #8
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Do you not see the world is ever more and more complex? Somebody says: let's study physics! I'd like to understand the place were I live. How illusory a statement. In his entire life he won't be able to understand but a tiny chapter of physics. Do you like that? I don't.

Why the need for more compression? Because software grows larger by the minute. What's the need? Software grows more complex by the minute. What's the need? More complex particle collision simulation. Oh, no! A new multimedia format.

Last edited by stf92; 01-21-2014 at 10:38 AM.
 
Old 01-21-2014, 11:33 AM   #9
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Well, nothing is keeping you from going back to an 8086 and run DOS or CP/M on it, reduces complexity. But then, I guess you like to browse the web with pictures (better picture compression -> faster browsing, but more complexity), ... .
Ranting about increasing complexity in software is useless, it will happen anyways. Having said that, I never needed to even look at the man-page for xz, it behaves exactly like gzip and bzip2 from a user point of view. If you can handle one, you can handle the others
 
Old 01-21-2014, 11:52 AM   #10
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,545

Rep: Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313
Quote:
Originally Posted by stf92 View Post
Do you not see the world is ever more and more complex? Somebody says: let's study physics! I'd like to understand the place were I live. How illusory a statement. In his entire life he won't be able to understand but a tiny chapter of physics. Do you like that? I don't.

Why the need for more compression? Because software grows larger by the minute. What's the need? Software grows more complex by the minute. What's the need? More complex particle collision simulation. Oh, no! A new multimedia format.
A concomitant of complexity can be choice. In this case, xz is usually a better choice for compressing data since it achieves better compression - faster download time, lower storage costs etc. The downside is that for machines which are not as highly powered (ARM for example, which is why the packages are still gzipped) and do not have as much RAM, xz can present problems.
As long as you learn the limitations and benefits of each, you can make well informed choices. Should you become overwhelmed by choice, you just move upwards and think about what it is you want to achieve and what are you prepared to lose or not profit from by not paying attention to certain details. e.g. for some things I just don't care about the fine details, so I might lose out on a few monetary savings from time to time but at the expense of not having to spend time doing something I don't want to.

I personally like to have a multitude of choices for certain situations/topics because it allows me fine control over my experience. For example, I find Windows almost untenable now because it's so much effort to turn off the defaults which are (IMO) intended for less experienced users: I want to be able to make fine adjustments. However, for other things such as making my window manager or X server work, I don't care about fine tuning - it's not relevant to me and I just want 'on and work'. The great thing about Linux distributions (Slackware especially) is that you can always go and change any setting you want without restriction, as the options are open.

Choice is a good thing. Too much choice simply means you need to find ways to deal with it :-)
 
Old 01-21-2014, 12:22 PM   #11
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Rep: Reputation: 195Reputation: 195
I use an utility called "unp". On your terminal you just have to type "unp file" and it unpacks it. It has support to a lot of filetypes and I believe xz is included.
 
1 members found this post helpful.
Old 01-21-2014, 12:29 PM   #12
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Yes, I see the three of them admit the same -dv option I always use. I have connected an 8086 with one of its pins connected to Vcc to set it in minimum mode, demultiplexed address/data and buffered all the lines, built a dynamic memory controller from scratch, no LSI chip, based on the memory data sheet specifications and used a Motorola 6845 CRT controller to build the video section around it. All 16 bits! How many wires! The predecesors used 8-bit data buses, easy to wire. Then I began to write an editor, then an assembler which was really a set of macros when, well, I had an IBM PC for some days and from then on my little machine was more and more relegated until I forgot it. The IBM ran an 8088, 8-bit only external data bus at 3.58 MHz. Mine ran at 8 MHz! What a fool! I should have stuck to my 8086.

Last edited by stf92; 01-21-2014 at 12:32 PM.
 
Old 01-21-2014, 12:42 PM   #13
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
If you want to compress a file/folder:

tar cfpJ the archivename.tar.xz filename

to decompress do as dugan said above

Last edited by dive; 01-21-2014 at 12:50 PM.
 
2 members found this post helpful.
Old 01-21-2014, 12:48 PM   #14
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
Quote:
Originally Posted by stf92 View Post
I should have stuck to my 8086.
Well, maybe that was an overkill already just this one would have been enough. Or even that one, but I'm not sure that you can still find one on Ebay

Last edited by Didier Spaier; 01-21-2014 at 01:24 PM. Reason: wording changed
 
Old 01-21-2014, 01:03 PM   #15
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Don't worry, i have just built a Z80 system to get out of the supercomplexity thing. For all things outside the system it is unable to communicate with them. Too slow, even running at 20MHz. Who cares. Have computers to work interactively? Certainly not.

EDIT: your knowledge of history amazes me! IBM has an original of Pascal's machine. The 8080 once was present in nine of ten desktops and physically larger machines. I worked with some of them. This one started the whole thing.

Last edited by stf92; 01-21-2014 at 01:11 PM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need a utility decompress and recompress Phoenix BIOS on HP notebook. r00tb33r Linux - Hardware 25 08-05-2008 02:36 PM
How do I decompress lzm files? hal8000b Linux - Software 2 09-21-2007 02:15 PM
decompress tar.bz2 files dhamle Linux - Software 2 09-11-2007 10:24 AM
decompress tar gz files? buccaneer Linux - Newbie 5 01-19-2004 02:15 AM
How do you decompress files, or run files such as the Netscape 6 Uninstaller in RH7.2 oudent Linux - Newbie 1 11-19-2001 12:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:35 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
Open Source Consulting | Domain Registration