Questions tagged [xz]

A container format for compressed streams. The .xz format can hold only a single file (it does not bundle multiple files into a single archive).

Filter by
Sorted by
Tagged with
5
votes
1answer
74 views

Is there a compression tool with an arbitrarily large dictionary?

I am looking for a compression tool with an arbitrarily large dictionary (and "block size"). Let me explain by way of examples. First let us create 32MB random data and then concatenate it to itself ...
0
votes
1answer
104 views

How may I emulate the -R feature of “zip”, but in gzip and xz?

The program "zip" has a -R feature which allows one to zip all files with a certain name in a directory tree: zip -r v/s zip -R For example: zip -R bigfile "bigfile" Will zip all of the following: ...
0
votes
1answer
107 views

Multithreaded xz, with gzip, pv, and pipes - is this the most efficient I can get?

I'm excited to learn that xz now supports multithreading: xz --threads=0 But now I want to utilise this as much as possible. For example, to recompress gzips as xz: gzip -d -k -c myfile.gz | pv | ...
1
vote
1answer
307 views

How do I `grep` through .xz compresses files?

I'm using Red Hat Virtualization (RHV) and it logs all of its files in this directory: $ pwd /var/log/vdsm $ ls | column -c 80 | head -10 backup vdsm.log.34.xz vdsm.log.69.xz import ...
0
votes
0answers
56 views

autocomplete with tar and .xz

When I wish to unpack a certain file with tar, I type tar followed by my chosen parameters. Then I type the first(s) letter of the file name and then press the tab key, as to let the autocomplete ...
2
votes
1answer
58 views

Docker busybox tar broken pipe

When executing docker run --rm -v ldaps_ldap-config:/volume -v /tmp/tmp.VznAcI3PTA:/backup busybox tar c -Jvf /backup/ldap-config.tar /volume I always get the following output: BusyBox v1.31.0 (...
0
votes
3answers
192 views

Compress a large folder tree while keeping an easy way to navigate and extract particular files

I have a large and heavy folder tree with many files and folders. I want to compress it to reduce the storage size. This tree will not be frequently used any more, but quite probably I will need to ...
5
votes
1answer
655 views

Writing to disk and compress with xz at the same time

I have a program that writes traces on disk and the size becomes very large. Normally, I use the following commands. ./run output.txt xz output.txt Can I pipe xz at the same time as output.txt is ...
0
votes
0answers
165 views

pxz (parallel xz) output meaning

I am running pxz with -v option, to "show progress" according to the man page. I am getting as output a sequence of seemingly random numbers, like: 0 1 7 3 2 5 8 4 9 6 6 9 5 0 1 2 3 8 7 4 ... It ...
0
votes
0answers
72 views

Mounting writeable xz compressed filesystem

I want use gnome-diskimage to take an image of a disk and write it to a mounted xz compression filesystem. Unfortunately, gnome-diskimages don't have a compression option. :( Some possibilities are ...
0
votes
1answer
202 views

GNU parallel proper usage in conjunction with tar, xz, gpg

I would like to speed up my archiving operations, I am usually doing 23 GiB (one Blu-Ray) backups. I have found this: How to do large file parallel encryption using GnuPG and GNU parallel? Since I ...
0
votes
0answers
85 views

How to make use of tar --verify directly?

This question is about compressing rather large data directories (around 22-23 GiB), specifically the integrity checks of such archives. I do these big backups about once a month, so the time it takes ...
0
votes
2answers
250 views

Unable to create tar with xz compression of a directory to another directory

I am trying to create a tar archive with xz compression of my home directory to another non-existent directory, but it gives me error: tar: Cowardly refusing to create an empty archive The command ...
1
vote
4answers
612 views

How to concatenate results of multiple commands and pipe into another without intermediate file?

Suppose I have four very large text files, all compressed with xz. file1.log.xz file2.log.xz file3.log.xz file4.log.xz What I'd like to do is concatenate the uncompressed contents of these four ...
1
vote
1answer
287 views

Compressing Directory tree into multiple tar archives into a single xz

I'm trying to compress a large rootdir which contains many subdir_i the folder tree looks like: ./rootdir ./rootdir/subdir_1 ./rootdir/subdir_2 ... I am looking to output this to a single compressed ...
1
vote
0answers
35 views

xzcmp does not work for some files. (Internal pipe error 141?)

I am using xzcmp to compare several XZ files. But I have a strange problem: For some files (*), xzcmp doesn't work and returns exit code 2, without error message. zxcmp version1.sql.xz version2.sql....
4
votes
1answer
2k views

Is there any way to check the compression ratio of a xz compressed file?

In windows by default one can see the compression ratio of zip files and after installing WinRAR it also supports this feature but currently I am using a linux and have compressed a file using lzma2 ...
4
votes
1answer
2k views

Is there any way to verify the integrity of a xz archive without decompressing the entire archive?

Can I check the integrity of the archive without decompressing it as the archive is 64GB. It is a backup of my old laptop and before i format my old laptop I wanted to verify the backup but it will ...
5
votes
4answers
3k views

How to convert all files from gzip to xz on the fly (and recursively)?

I have a directory tree with gzipped files like this: basedir/a/file.dat.gz basedir/b/file.dat.gz basedir/c/file.dat.gz etc. How can I convert all of these from gzip to xz with a single command and ...
0
votes
2answers
2k views

How to check what compression type an RPM package uses?

I recently realized that the RPM packages shifted from gzip-compression to xz-compression a few years ago. I need to check is the compression type of an RPM package that I have. I also need to check ...
1
vote
1answer
707 views

'xz -d' vs. `unxz`

Why is xz -d preferred over unxz when writing scripts? From the man page for xz 5.1.0alpha: When writing scripts that need to decompress files, it is recommended to always use the name xz with ...
1
vote
1answer
1k views

compression levels gz and xz

Why isn't there any difference (output filesize) with these command lines? Gzip stdin The output files have same filesize even though the compression levels are different tar ... | gzip -c -1 > ...
8
votes
3answers
22k views

RHEL6 + Error: xz compression not available

When installing packages via yum on a RHEL Server 6.6 system, I get the following error: $ sudo yum install foo Loaded plugins: product-id, rhnplugin, security, subscription-manager This system is ...
3
votes
2answers
5k views

XZ - Cannot allocate memory

If i run this command: XZ_OPT=-9 tar --xz -cvf files/compressed/xz/archive.tar.xz -C files/original/ . Get this message: xz: (stdin): Cannot allocate memory tar: files/compressed/lzma//archive.lzma:...
0
votes
1answer
298 views

Can I use lzma compression, without using “tar”, on OSX 10.10.3?

I can create tar files compressed using lzma as such: $ ls ./DbDumps alpha.dmp beta.dmp delta.dmp $ XZ_OPT=-9 tar cJf dbDumps.tar.xz DbDumps But, what I really want to do ( but cannot ) ...
-1
votes
1answer
4k views

Error: xz compression not available

I'm running redhat enterprise v6.6 64bit and am tyring to install 32bit Skype. In the process of trying to fix the dependency issue I managed to create another issue for myself. When I try and ...
211
votes
4answers
64k views

Why are tar archive formats switching to xz compression to replace bzip2 and what about gzip?

More and more tar archives use the xz format based on LZMA2 for compression instead of the traditional bzip2(bz2) compression. In fact kernel.org made a late "Good-bye bzip2" announcement, 27th Dec. ...
0
votes
1answer
3k views

linux + xzcat command

Please advice from where ( which site ) I can download the xzcat Linux command? I am using linux version 5.4 I tried to download the xzcat from the site: http://www.filewatcher.com/m/xzcat.2-0....