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
1
vote
1 answer

Unpack .xz file within C code

My question is quite simple. Is there any possible way to unpack packed .xz file in from C code? I would probably call some default linux-integrated program to unpack it for me, but how exactly does it work? I call the external function and than…
Jendas
  • 3,359
  • 3
  • 27
  • 55
0
votes
1 answer

How to Extract tar.xz with password on Google colab?

I have a tar.xz file. So far I have seen many file extractions but not with tar.xz files with passwords. Please, thank you for your help.
0
votes
2 answers

Determining Anaconda XZ Package Content

I'm currently trying to figure out the contents of an anaconda package called XZ. From my understanding, the package provides binding for XZ Utils (data compression tool). I'm trying to figure out the components of XZ Utils that exist within the…
Zar
  • 1
  • 3
0
votes
1 answer

Python 3.8 lzma decompress huge file incremental input and output

I am looking to do, in Python 3.8, the equivalent of: xz --decompress --stdout < hugefile.xz > hugefile.out where neither the input nor output might fit well in memory. As I read the documentation at…
0
votes
1 answer

How to convert a XZ compression output to a NSString?

I've successfully set up a small XZ compressor which returns a std::string that contains the compressed output. To process the result I need to "convert" the std::string to a NSString. Unfortunately there are (encoding?) problems: Even though "abc"…
Paul
  • 1,295
  • 2
  • 11
  • 26
0
votes
1 answer

Compressing files through vroom and piping to pixz

I would like to write the mtcars data.frame to file using compression (xz in my case) using the vroom package and pixz but I can't get it to write a file. It complains that pixz does not exist even though it is installed locally. According to the…
HCAI
  • 2,213
  • 8
  • 33
  • 65
0
votes
0 answers

`xz-java` library: Is there any way to use «Extreme» presets?

Introduction I have a couple of small and simple questions on the xz-java library. In addition to asking the questions here I have asked the library author same questions by sending an email message. The xz command-line tool supports the «Extreme»…
0
votes
0 answers

how to extract the size of the uncompressed file from xz api?

The xz api allows for multiple compression schemes, but the default is lzma2. In order to read directly into memory, I want to read the size, allocate that much memory, and write directly into it rather than reading into a fixed 64k buffer. LZMA2…
Dov
  • 8,000
  • 8
  • 46
  • 75
0
votes
0 answers

Extracting tar.xz won't output file PHP

I have a file called control.tar.xz. I'm trying to extract the file, but there is no output. Heres my code: shell_exec('cd ' . __DIR__ . ' && tar -xf control.tar.xz'); I'm checking for control and it's not showing. What am I doing wrong?
Parsa Yazdani
  • 164
  • 1
  • 11
0
votes
2 answers

How to add ZipEntry using XZ for Java

I'm zipping some json files using the standard ZipOutputStream ObjectMapper objectMapper = new ObjectMapper(); try (ZipOutputStream out = new ZipOutputStream(Files.newOutputStream(outputFile + ".zip"))) { out.putNextEntry(new…
sikidhart
  • 401
  • 4
  • 16
0
votes
0 answers

Python 2.7 extract a single file from tar.xz

I need to extract a single file and copy it to some other location using python. I have this code which does the required thing for gzip compressed data, tar = tarfile.open(tar_filename) for member in tar.getmembers(): if "abc" in…
Red Gundu
  • 183
  • 2
  • 10
0
votes
1 answer

how much multiprocess can speed up on compress task?

I have a large compress task (compress 10000 large file( > 10 G each)) I found xz -z or gzip are slow. So, i want to use multiprocess to make the compress parallelized. but i heard the high IO task's limit is on IO speed. I am not so good in…
nick
  • 41
  • 6
0
votes
2 answers

How can i read xz file without decompressing in c++?

I want to read xz file effectively, so i think uncompress is not a good choice. Is there any methods i can use to read xzfile without decompressing in c++? I know zlib is a great tool to read gz file, but it cant be used in xz file. I found i can…
xyhuang
  • 414
  • 3
  • 11
0
votes
1 answer

Decompressing or Extracting the XZ Frida Server?

I am trying to push Frida onto an Android Emulator. To do this you use Android Device Bridge (adb) to "push" the frida server to a folder. I downloaded the server. It comes in a xz file format. When I open the xz file with the Frida Android…
Cylikon
  • 1
  • 2
0
votes
0 answers

Delete Files from .tar Archive while Extracting

I am wondering whether I can incrementally delete the contents of an archive (at a minimum .tar, though ideally also .tar.xz or similar) as I am extracting them all. The ultimate goal is to remove the necessity to have twice the space required for…
TheChymera
  • 17,004
  • 14
  • 56
  • 86