Questions tagged [xz]

xz is a lossless data compression program and file format which incorporates the LZMA/LZMA2 compression algorithms

XZ Utils (previously LZMA Utils) is a set of free command-line lossless data compressors, including LZMA and xz, for Unix-like operating systems and, from version 5.0 onwards, Microsoft Windows.

105 questions
3
votes
1 answer

Enabling LZMA(2) (i.e. `.xz`) compression in log4j2

Current state of world Currently our RollingFileAppender in log4j2.xml uses Gzip compression: Goal I would like to switch to…
Birchlabs
  • 7,437
  • 5
  • 35
  • 54
3
votes
1 answer

Extract a tar.xz in C/C++

I am writing a program that downloads tar.xz files from a server and extracts them in a certain place. I am struggling to find a away of extracting the tar.xz file in the certain place. I am using Qt so a more Qt-way of doing it would be useful, but…
Tom Leese
  • 19,309
  • 12
  • 45
  • 70
3
votes
1 answer

How to use the 7z SDK to compress and decompress a XZ file

How can I use 7z SDK (http://www.7-zip.org/sdk.html) to compress/decompress a XZ file in C# if the input/output is a file stream?
3
votes
1 answer

android dlavikvm-heap out ot memory allocation upon XZ compression

I am trying to compress a tar to a tar.xz on API 2.3.3. No matter what I do I get this error: 06-09 20:56:32.230: V/CameraDemo(23418): filesPath -- > /mnt/sdcard/myimages 06-09 20:56:32.336: D/dalvikvm(23418): GC_FOR_ALLOC freed 75K, 2% free…
Jadeye
  • 3,551
  • 4
  • 47
  • 63
2
votes
1 answer

How can I read a .xz file in Python?

I am downloading files from the web with the ending .xz. It says they are JSONstrean files. Is there a way to read these files in Python, for example like a CSV file?
gython
  • 865
  • 4
  • 18
2
votes
2 answers

How to decompress XZ data from a hyper::Response on the fly?

I'm downloading an XZ file with hyper, and I would like to save it to disk in decompressed form by extracting as much as possible from each incoming Chunk and writing results to disk immediately, as opposed to first downloading the entire file and…
mephi42
  • 475
  • 6
  • 18
2
votes
1 answer

Read xz file on client side

I have large json files on the server, which I compressed with xz. I thought I'd be a good idea to request them as such, i.e. compressed, and decompress them in javascript on the client side. I'm trying to use the LZMA-JS library, but I haven't been…
SU3
  • 5,064
  • 3
  • 35
  • 66
2
votes
1 answer

Unknown type when compiling XZ Utils on MinGW/MSYS2

I've been trying to compile XZ Utils using MinGW-w64 and when trying to run make after ./configureing, I get the error that sigset_t is unknown. The XZ Utils version is 5.2.3, and my MinGW-w64 is x86_64-7.2.0-posix-seh-rt_v5-rv1. In file included…
FallenWarrior
  • 656
  • 3
  • 16
2
votes
1 answer

Homebrews php56-imagick module can not load because of liblzma

I installed php56 via homebrew on OS X Yosemite. It's a working installation. I just added now the ImageMagick and php56-imagick packages. Apache is running ok, php -i shows the imagick module. But the apache-server can not load the module on…
J. Hauser
  • 233
  • 1
  • 16
2
votes
1 answer

Can't extract .xz files with python "tarfile.ReadError: file could not be opened successfully"

I need to extract some text files compressed to .xz files using python. My code is just import tarfile tarfile.open('file.xz') But this fails with the error Traceback (most recent call last): File "", line 1, in File…
Qwertie
  • 5,784
  • 12
  • 45
  • 89
2
votes
1 answer

How to get uniform compression while using xz compression in Java?

I am trying xz compression in Java. Using the xz 1.5 compression library, the commons io 2.4 library and the commons compress 1.8.1 library. I tried to run the code below which gave me very inconsistent results . Over 70% for text, Under 0.1% for…
Rohan Sampson
  • 61
  • 1
  • 1
  • 7
1
vote
1 answer

Killing a Unix zipping process

I'm using the xz zipping utility on a PBS cluster; I've just realised that the time I've allowed for my zipping jobs won't be long enough, and so would like to restart them (and then, presumably, I'll need to include the .xz that has already been…
ChrisW
  • 4,970
  • 7
  • 55
  • 92
1
vote
1 answer

"liblzma library and headers are required" when installing R-4.2.2 and dependencies under $HOME

I am installing R-4.2.2 under my $HOME path on a Red Hat 4.8.5-28 server. When I run ./configure --prefix=$HOME/R --enable-R-shlib I found the error: checking whether bzip2 support suffices... yes checking for lzma_version_number in -llzma...…
GG Bond
  • 15
  • 3
1
vote
2 answers

How to do random access of specific blocks in an .xz file?

My goal is to be able to reduce time needed to look at specific sections from the middle of very large log files compressed to .xz format. If the .xz files are for example 6GB compressed and 60GB uncompressed, using simple commands like xzcat
abcd efg
  • 51
  • 5
1
vote
0 answers

unzip xz file into memory and read csv with pandas

I have a zipped file which contains a csv, compressed with xz. I want to unzip it into the memory, and read wit pandas' read_csv method. Pandas knows xz compression data = pd.read_csv(filepath_or_buffer=file, index_col=0, compression='xz',…
Paolo
  • 117
  • 8