Questions tagged [xz]

The .xz file format is a LZMA2 based compression format. There are no archiving capabilities so .xz files only hold one compressed file.

The .xz file format is a container format for compressed streams, normally using LZMA2. There are no archiving capabilities, that is, the .xz format can hold only a single file just like the .gz and .bz2 file formats used by and , respectively.

27 questions
142
votes
1 answer

Cannot decompress .tar.xz file, getting "xz: Cannot exec: No such file or directory" from tar

Per How do I uncompress a tarball that uses .xz?, I tried tar xf php-5.6.0RC4.tar.xz and tar -xJf php-5.6.0RC4.tar.xz and in both cases I get the following: tar (child): xz: Cannot exec: No such file or directory tar (child): Error is not…
neubert
  • 7,574
  • 39
  • 94
  • 156
38
votes
6 answers

Between xz, gzip, and bzip2, which compression algorithim is the most efficient?

Between xz, gzip, and bzip2, which compression algorithm gives the smallest file size and fastest speed when compressing fairly large tarballs?
Nathan2055
  • 1,430
27
votes
3 answers

Compressing many similar big files

I have hundreds of similar big files (30 megabyte each) which I want to compress. Every pair of files have 99% of same data (less then 1% difference), so I expect to have not more than 40-50 megabyte archive. Single file can be compressed from 30 MB…
osgx
  • 7,017
16
votes
1 answer

Difference between pixz and xz with -T option

I'm trying to compress a 100GB with a good ratio, so I decided to use xz. I don't need it to be very fast, but since I have an 8-threads CPU, I was wondering how to take advantage of them. I found there is a parallel implementation of xz: pixz. I…
Dertalai
  • 393
6
votes
2 answers

How can I have `less` automatically decompress `xz` files like it did with `gz` files on my old SUSE distro?

On my old SUSE distro, less would automatically decompress .gz files. That came in very convenient when listing auto-compressed /var/log/mail*.gz files. The current version of SUSE now archives /var/log/mail and others with xz. I never wondered how…
5
votes
1 answer

How do I safely convert a .gz file to a .xz file

I have some huge files that are currently gzipped and I would like to xz them. I want set up a script to do this, but I want to be careful not to lose the data, i.e. I should never delete the gzipped version unless the xz version was definitely…
4
votes
2 answers

Decompress a tar.xz file using all cores

I have 37 GiB File which was created by tar + xz. I have a server with 6 cores, so for maximum compression speed I want to use all my 6 cores using this command XZ_OPT='-T0 -9 –memory=75%' tar -cJf mydir.tar.xz mydir And it was pretty fast. What…
3
votes
5 answers

Error extracting tar.xz files in Windows using command line

I have a bunch of tar.xz files I need to extract. I tried using the following command, but get an error. tar -xJf "S:This_Is\the path\to_my_file.tar.xz" tar: Error opening archive: Can't initialize filter; unable to run program "xz -d -qq" I have…
David K
  • 365
3
votes
1 answer

file splitting and compression in pipeline

So I have a massive file something like…
Jay
  • 209
2
votes
1 answer

Does specifying the compression engine to tar directly actually use less intermediate disk space than tarring first and then compressing?

When I use tar to archive a directory and then compress it separately using e.g. xz, there will be a point where I have three files on my system - dir, dir.tar and dir.tar.xz. As soon as the compression is completed, dir.tar is deleted, but it seems…
joelostblom
  • 2,699
  • 4
  • 24
  • 28
2
votes
1 answer

backports/lzma/_lzmamodule.c(115) : fatal error C1083: Cannot open include file: 'lzma.h': No such file or directory

I have a Windows 7 PC with Visual Studio 2015 upgrade 3 installed on it and I would like to install backports.lzma library for Python with pip. I have downloaded and extracted XZ Utils in Program Files folder. (XZ Utils is mandatory for install…
Cyr
  • 137
2
votes
2 answers

run program in background

Is it possible to run a program e.g. xz in the background so it wouldn't suck all the system's resources?
clarkk
  • 479
1
vote
0 answers

Can I fix this TAR+XZ file?

I'm doing some file recovery on an old hard drive, using the most recent stable PhotoRec. After finding a lot of files that I wanted to keep, I decided to make some of them (meaning over 700) easier to manage by putting them in a .tar.xz archive. I…
user233199
  • 11
  • 1
  • 2
1
vote
0 answers

PiShrink creating files with different sizes with the same input

I've recently started using PiShrink to decrease the size of backup images and I noticed that the file size of an with PiShrink shrunken and xz compressed image. sudo pishrink.sh -Z input_image.img shrunken_compressed.img differs if I repeat it…
Jannis
  • 11
  • 1
1
vote
2 answers

Decompressed a .xz file and now it has no extension and is not a directory

I had a directory of files that I compressed using: tar -cvJf my_directory.xz my_directory Now I've gone to decompress it using: xz -dv my_directory.xz my_directory and the resulting file is simply my_directory. It has no extension and it's not a…
lusk
  • 125
1
2