Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I tried to uncompressed a "*.xz" file with both 7z and lzma. But they gave me such message:

$ 7z x myfile.fq.xz 

7-Zip 4.57  Copyright (c) 1999-2007 Igor Pavlov  2007-12-06
p7zip Version 4.57 (locale=C,Utf16=off,HugeFiles=on,4 CPUs)

Processing archive: myfile.fq.xz

Error: Can not open file as archive

$ 7z x myfile.fq.xz 

7-Zip 4.57  Copyright (c) 1999-2007 Igor Pavlov  2007-12-06
p7zip Version 4.57 (locale=C,Utf16=off,HugeFiles=on,4 CPUs)

Processing archive: myfile.fq.xz

Error: Can not open file as archive

and with lzma

$ lzma -d myfile.fq.xz  
J_12.fq.xz:  unknown suffix -- unchanged

with other option:

 $ lzma -S .xz -d myfile.fq.xz  
lzma: SetDecoderProperties() error
share|improve this question
1  
And file says...? –  Ignacio Vazquez-Abrams May 27 '10 at 7:39
    
@Ignacio: Sorry I don't get you. –  neversaint May 27 '10 at 7:40
    
    
@Ignacio: It gave me this:"$ file myfile.fq.xz -> myfile.fq.xz:data" –  neversaint May 27 '10 at 7:44

3 Answers 3

up vote 10 down vote accepted

Have you tried downloading the XZ Utils from http://tukaani.org/xz/ ?

The XZ documentation says:

At least the following software support the .xz file format:

  • XZ Utils
  • XZ Embedded
  • 7-Zip and LZMA SDK versions 9.00 alpha and later

I don't know if the 9.00 alpha version can be compared to your 4.57 version, but if it can, then maybe you simply just need to upgrade 7-zip.

share|improve this answer
    
+1 for providing the xz distribution URL. –  Peeter Joot Aug 1 '13 at 19:49

To add to snowlord's notes,

Extract from the 7-zip version history,

9.04 beta      2009-05-30
-------------------------
- supports LZMA2 compression method.
- supports XZ archives.
- can unpack NTFS, FAT, VHD and MBR archives.
- can unpack GZip, BZip2, LZMA, XZ and TAR archives from stdin.

and, version 4.65 released 2009-02-03 is the last version number in 4.xx series.

Regarding the version numbering,

After version 4.65, 7-Zip switched to a "Year.Revision" version numbering scheme, similar to the one used by Ubuntu and some other projects. The first release under the new scheme was 9.07 beta.

So, an upgrade should help.
Try the Beta version -- which is 9.13 at the moment.

share|improve this answer

If you are running Ubuntu, you should have the xz-utils installed by default. I am running Ubuntu 10.04, and to extract .xz files, I use the following command:

xz -d path/to/file.xz

This will extract the file to the current directory.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.