News for hackers. Stuff that matters.
Re:7-Zip for Linux by kd913 on Thursday March 11, 2021 @01:38PM (#26427367)
Why though? There are already plenty of free tools to do this.

unzip,zip,tar,gunzip,ark

Re:7-Zip for Linux by I_Byte on Thursday March 11, 2021 @01:42PM (#26427419)
I have noticed that 7-zip offers the best compression ratio out of the options you listed above when set for maximum compression. I personally am happy to hear this news.
Re:7-Zip for Linux by krzyk on Thursday March 11, 2021 @04:31PM (#26429252)
Better than xz?

And what's the difference? I alwasy though 7zip was a bit sketchy like rar archives, zips are more common on windows and on linux everywhere I see there are either gz, bz2 or xz.

Re:7-Zip for Linux by user-the-name on Thursday March 11, 2021 @07:08PM (#26430670)
xz is based on LZMA, which was originally introduced by 7-Zip.

xz is a much simplified version of the massively, insanely over-engineered and frankly impossible to implement 7-Zip format.

Re:7-Zip for Linux by hcs on Friday March 12, 2021 @03:22PM (#26440427)
xz doesn't have BCJ2 (though it does have an earlier BCJ filter), which allows for somewhat better compression of exes. BCJ2 produces separate streams which independently compress better. See for instance https://bugzilla.mozilla.org/show_bug.cgi?id=1514357, saves almost 10% on a Firefox installer (which uses 7-Zip) vs the complete update .mar file (which uses xz/liblzma).
Re:7-Zip for Linux by fanatic2pope on Thursday March 11, 2021 @01:47PM (#26427496)
Keeping the options for those straight is why one of my most used command line programs seems to be atool.

https://www.nongnu.org/atool/

Re:7-Zip for Linux by JonathonW on Thursday March 11, 2021 @02:35PM (#26428036)
I like the current bsdtar-- it's libarchive [1] based, and supports a bunch of formats (including your typical tarball formats, but also zip, 7zip, and rar archives, amongst others).

[1] https://www.libarchive.org/

Re:7-Zip for Linux by kumarsw on Thursday March 11, 2021 @02:38PM (#26428082)
I'm assuming it's because 7-zip (1) has widespread use on other platforms (2) supports solid compression and (3) is efficient for randomly access. There is DAR which does (2) and (3) but not cross-platform and is already esoteric on *nix platforms.
Re:7-Zip for Linux by compressedgas on Thursday March 11, 2021 @01:42PM (#26427415)
Those don't use LZMA. For LZMA there is 7z, xz, and lzip.
Re:7-Zip for Linux by usefulcat on Thursday March 11, 2021 @02:51PM (#26428242)
Also pixz, which can use multiple threads for decompression.
Re:7-Zip for Linux by OneLeggedCat on Thursday March 11, 2021 @06:25PM (#26430345)
I spent some time a year ago comparing formats, and ended up liking pixz the most, especially being indexable. EXCEPT that according to my notes, I couldn't find any gui archiver that worked with it. Do you know if it is still that way?
Re:7-Zip for Linux by usefulcat on Thursday March 11, 2021 @10:20PM (#26431891)
I've only used it from the command line, so I don't know. For my needs, the ability to use multiple threads for decompression was its killer feature.
Re:7-Zip for Linux by biglost on Thursday March 11, 2021 @01:57PM (#26427627)
lrzip :-D
Re:7-Zip for Linux by harshreality on Thursday March 11, 2021 @02:33PM (#26428020)
tar supports xz and even zstd now, but it's not clear those are better for all purposes than 7zip, especially since .7z is more likely to work on other OSes than .tar.compressionextension
Re:7-Zip for Linux by LinuxBender on Thursday March 11, 2021 @02:56PM (#26428289)
xz is almost identical compression depending on flags used but lacks encryption. Some people use 7zip to also encrypt their files.
Re:7-Zip for Linux by Theodores on Thursday March 11, 2021 @02:23PM (#26427918)
Brotli. My new goto.
Re:7-Zip for Linux by OneLeggedCat on Thursday March 11, 2021 @06:20PM (#26430310)
Being indexable is my own favorite reason.