News for hackers. Stuff that matters.
Re:7-Zip for Linux by qalmakka on Thursday March 11, 2021 @02:58PM (#26428309)
I hope 7-Zip will support Zstandard someday, .tar.zst is getting more and more common and having to point people on Windows to install either modern7z (7z plugin for several new compression algorithms) or use zstd from the CLI is complicated.
Re:7-Zip for Linux by kiririn on Thursday March 11, 2021 @04:41PM (#26429339)
I’ve always been confused by the popular choice of compression on tar archives. If a small portion of a gz, xz, zst, etc archive is corrupted you lose everything after it, defeating the purpose of using a stream format like Tar.

The algorithms that can recover data after the corruption like bzip2 and lzip don’t see much use these days

Re:7-Zip for Linux by dTal on Thursday March 11, 2021 @05:05PM (#26429614)
99.9% of the time, if a .tar.gz archive is corrupted, I don't want to recover the data - I want to redownload it from a different mirror because it's source code and it probably won't work with any corruption at all.
Re:7-Zip for Linux by TonyTrapp on Friday March 12, 2021 @06:13AM (#26434486)
Sometimes you have no choice. Downloading historic archives of which there is no other copy, trying to recover of it as much as possible.
Re:7-Zip for Linux by __s on Thursday March 11, 2021 @04:47PM (#26429420)
Two reasons:

- if you know tar supports your directory / metadata, you don't have to lookup if zst will preserve that info

- interfile compression

I don't think people would say they use tar because it's a stream format. They use it because it packages files/directories into a file

Re:7-Zip for Linux by zeepzeep on Friday March 12, 2021 @02:15AM (#26433011)
I only use it for keeping file permissions
Re:7-Zip for Linux by evil-olive on Thursday March 11, 2021 @09:54PM (#26431770)
In the common case of receiving a compressed tar over the network, it should hopefully be protected by at least a checksum or hash, if not a cryptographic signature.

If I expect I may have to deal with some form of data corruption (such as long-term archival media), I'd rather add a layer such as PAR2 [0]. Rather than content myself with "if the tar file is corrupted, I can probably recover most of the contents", erasure coding gives me confidence that I can definitely recover all of the contents, with confidence they're not corrupted, as long as I have enough parity data.

0: https://en.wikipedia.org/wiki/Parchive

Re:7-Zip for Linux by qalmakka on Sunday March 14, 2021 @06:41AM (#26454210)
Nobody uses Tar like that anymore. Tar is used as a more flexible replacement for ZIP nowadays, it could have easily been CPIO but `tar` had a much better command line interface.
Re:7-Zip for Linux by omgtehlion on Thursday March 11, 2021 @03:10PM (#26428439)
https://www.tc4shell.com/en/7zip/modern7z/

windows-only, though (and 3rd-party)...

Re:7-Zip for Linux by qalmakka on Thursday March 11, 2021 @03:25PM (#26428585)
That's exactly what I quoted in my comment. It's not necessary on Linux though, given that every environment ships a good archiving program (like Ark or File Roller) that supports zstandard.
Re:7-Zip for Linux by sigzero on Thursday March 11, 2021 @04:04PM (#26428985)
I have never seen a .zst file. Just a comment.
Re:7-Zip for Linux by unixhero on Friday March 12, 2021 @01:35AM (#26432779)
Me neither, never. Buy if Arch is doing it, then I am sure it is worthwhile.
Re:7-Zip for Linux by qalmakka on Sunday March 14, 2021 @06:39AM (#26454199)
Zstandard is getting ubiquitous everywhere: inside of RPMs, as a way to compress data onto filesystems (both Btrfs and ZFS support it) and in several other applications. It decompresses much much faster than XZ while offering a comparable level of compression (XZ is still better, but at with an unreasonably worse computational cost).

The fact .tar.zst or .tzst isn't supercommon (yet) is for the same reason .tar.xz took years to become widely adopted: lots of OSes still ship `tar`s that don't support it out of the box, like Windows (which only supports gzip actually) and macOS (which ships an old version of bsdtar and no libzst). On a reasonably new Linux, is like opening every other kind of tar.

Re:7-Zip for Linux by chungy on Thursday March 11, 2021 @04:38PM (#26429316)
They're becoming increasingly common, especially if you ever pay attention to Linux packaging.
Re:7-Zip for Linux by moistbar on Thursday March 11, 2021 @04:42PM (#26429356)
The majority that I've seen have been .tar.xz
Re:7-Zip for Linux by axaxs on Thursday March 11, 2021 @07:14PM (#26430727)
Arch, arguably one of the most prolific user bases, uses zst.
Re:7-Zip for Linux by Emanation on Friday March 12, 2021 @07:27AM (#26435048)
Only time ive seen it was while installing zsh for git bash.