SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
mkdir kernel-source-5.10.21/
cd kernel-source-5.10.21/
explodepkg ../kernel-source-5.10.21-noarch-1.txz
# snip the output of that.
tar -cf kernel-source-5.10.21.tar kernel-source-5.10.21
lrzip kernel-source-5.10.21.tar
Output filename is: kernel-source-5.10.21.tar.lrz
kernel-source-5.10.21.tar - Compression Ratio: 1.341. Average Compression Speed: 34.138MB/s.
Total time: 00:00:29.43
I then did this:
Code:
xz -d kernel-source-5.10.21-noarch-1.txz
lrzip kernel-source-5.10.21-noarch-1.tar
Output filename is: kernel-source-5.10.21-noarch-1.tar.lrz
kernel-source-5.10.21-noarch-1.tar - Compression Ratio: 1.402. Average Compression Speed: 24.625MB/s.
Total time: 00:00:39.16
File sizes:
Code:
-rw-r--r-- 1 root root 1033308160 Mar 8 04:14 kernel-source-5.10.21-noarch-1.tar
-rw-r--r-- 1 root root 736789046 Mar 8 04:14 kernel-source-5.10.21-noarch-1.tar.lrz
-rw-r--r-- 1 root root 117327296 Mar 8 04:14 kernel-source-5.10.21-noarch-1.txz
-rw-r--r-- 1 root root 1038632960 Mar 8 17:26 kernel-source-5.10.21.tar
-rw-r--r-- 1 root root 774727995 Mar 8 17:26 kernel-source-5.10.21.tar.lrz
-rw-r--r-- 1 root root 986M Mar 8 04:14 kernel-source-5.10.21-noarch-1.tar
-rw-r--r-- 1 root root 703M Mar 8 04:14 kernel-source-5.10.21-noarch-1.tar.lrz
-rw-r--r-- 1 root root 112M Mar 8 04:14 kernel-source-5.10.21-noarch-1.txz
-rw-r--r-- 1 root root 991M Mar 8 17:26 kernel-source-5.10.21.tar
-rw-r--r-- 1 root root 739M Mar 8 17:26 kernel-source-5.10.21.tar.lrz
The compression ratio 1.341 is ridiculous. lrzip is supposed tu use LZMA compression.
For very large files, lrzip should be slighly better than xz
It does not even change with the '-z' option (with zpac, maximum compression).
The compression ratio 1.341 is ridiculous. lrzip is supposed tu use LZMA compression.
For very large files, lrzip should be slighly better than xz
It does not even change with the '-z' option (with zpac, maximum compression).
xz and lrzip are supposed to use the same compression algorithm (LZMA). It is why I don't understand why lrzip compressed files are 6 to 7 larger than xz ones.
for starters you can choose different compression levels. But the main point is, lrzip is designed for use cases where you have to compress 100 kernel source trees. LR stands for long range.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.