Readit News logoReadit News
gertop · 6 months ago
I wish 7-zip would support .tar.gz the way WinRAR does.

WinRAR allows you to browse a .tar.gz without extracting it, 7-zip extracts the .tar to a temp file. It makes working with large .tar.gz files impossible.

(Yes I know that because of how .tar works WinRAR must decompresses it to build the files list. But it beats having to write a 1TB .tar to disk just to see the file listing.

hackyhacky · 6 months ago
Gnome's file-roller can do this. Not sure if it can run on Windows though.

https://wiki.gnome.org/Apps(2f)FileRoller.html

genocidicbunny · 6 months ago
WinRAR also seems to handle opening a file in an external app without manually extracting much better. I can just double-click a file in an archive and open it in an external app, while with 7-zip it seems to immediately delete the temporary file so the external app ends up trying to open a non-existent file. Rather annoying if you're just trying to quickly check something like the readme.txt in an archive.
gruez · 6 months ago
>while with 7-zip it seems to immediately delete the temporary file so the external app ends up trying to open a non-existent file.

No, 7-zip only deletes the file after you close its window, so as long as you don't close 7-zip any apps should be able to open those files. Winrar doesn't delete on close, but that has its own problems, namely that you accumulate a bunch of extracted files in your %TEMP% directory, and have to run disk cleanup to delete them.

blibble · 6 months ago
how is that possible?

tar.gz files don't have a central directory (like zip), and they are compressed as one stream (almost always non-seekable)

Dwedit · 6 months ago
.tar itself gives you enough information to seek forward past each file, though every file must be visited.

.gz does not give you enough information to randomly seek within the big compressed .gz file, so you cannot skip past files within a .tar archive.

But if you load a .gz file and consume the entire stream, but keep periodic checkpoints of your past sliding window (about 64KB) every 1MB or so, you can get random access with 1MB granularity. You still had to consume the entire stream to build the lookup though.

nine_k · 6 months ago
Decompress, scan as you go, discard. Having to read a few hundred GB and scan a terabyte is a nuisance. Not having to write a terabyte is priceless.
wslh · 6 months ago
I am guessing the gzip is retrieved as a stream and then reading the tar from that stream in memory?
ofek · 6 months ago
For those who are unaware, there is another project [1] that tracks upstream which adds support for various codecs like Zstandard. Many folks (such as myself) opt to install their releases instead.

[1]: https://github.com/mcmilk/7-Zip-zstd

yashau · 6 months ago
I prefer NanaZip[1]. It has all the features of the ZS and NSIS fork while being fully compatible with the new Windows context menus.

[1]: https://github.com/M2Team/NanaZip

doubled112 · 6 months ago
Perhaps a tangent, but until now, I've only seen or used "codec" in the audio/video sense. While somehow awkward, it seems this would also be correct, since it also compresses and decompresses. Video codec but archive format.

Sometimes you see a word used a new way and wonder if you've just been wrong all these years.

heavyset_go · 6 months ago
The defining factor isn't compression/decompression, it's just encoding.

You'll see codec used in things like text encoding.

chronial · 6 months ago
Note that the official 7z build supports zstd compression since version 24: https://github.com/ip7z/7zip/releases/tag/24.05
abhinavk · 6 months ago
Only decompression, not compression.
jccalhoun · 6 months ago
There is also NanaZip which aims to be a more modern Windows application and I think also incorporates the additions of the 7zs fork https://github.com/M2Team/NanaZip
_imnothere · 6 months ago
Maybe it's just me but I got weird feelings seeing 7-Zip-zstd repo having more stars than it's upstream.
abhinavk · 6 months ago
Github is just a mirror used to post sources of releases and track bugs. It has only 11 commits so far.
Dwedit · 6 months ago
7-Zip 15.05 is still useful today, because it was the last version to include built-in support for decompiling NSIS installer scripts. The feature was removed due to security concerns.
mmebane · 6 months ago
I've not personally used it, but there's a fork that adds NSIS decompilation back in: https://github.com/myfreeer/7z-build-nsis
parlortricks · 6 months ago
Why is decompiling NSIS a security concern?
Dwedit · 6 months ago
In case of bugs in the decompiler. Extracting the files is still possible in newer versions, just not decompiling the installer scripts.
NooneAtAll3 · 6 months ago
what is NSIS?
orbital-decay · 6 months ago
Nullsoft Scriptable Install System, a byproduct of Winamp that is ubiquitous in lightweight software installers for Windows.

https://sourceforge.net/projects/nsis/

gaws · 6 months ago
Is there an alternative version for Linux?
pregnenolone · 6 months ago
I wish either RAR or 7-Zip would finally implement a memory-hard KDF for encrypted archives.
shmerl · 6 months ago
Lately I use zstd + tar for making archives that preserve file metadata.
jainilprajapati · 6 months ago
I don’t know why we need this now because Microsoft had in build zip so
atmanactive · 6 months ago
Because that one is rubbish, and this is gold.
doctorpangloss · 6 months ago
Why doesn't Windows ship with an unarchiving utility?
jchw · 6 months ago
Windows has shipped with "ZIP folders" and the ability to create and extract ZIP files since the late 90s/early 2000s I believe (not sure exactly what version.) As of the latest versions of Windows 11, Windows ships with libarchive-based archive extraction, which should let you extract many archives natively (including 7-zip and RAR) via the UI as well as the CLI (via BSD TAR, which also ships with Windows these days.)
Dwedit · 6 months ago
ZIP Folders was developed by Dave Plummer from Microsoft (who runs the Dave's Garage YouTube channel). It was made in his spare time, then was licensed to Microsoft afterwards.
genocidicbunny · 6 months ago
I think those first appeared in some form in XP. I don't recall 2000 having support for it integrated into explorer.
jccalhoun · 6 months ago
In October of 2023 Windows 11 was updated to use libarchive https://www.techspot.com/news/100663-windows-11-extends-supp...
jore · 6 months ago
I think that at least since win10 there is zip embedded in windows, it’s just not 7z
lousken · 6 months ago
it goes much further back than that, think it was xp

the issue is that it sucks, it's at least 10x slower than 7 zip, maybe more, showing lots of files/folders freezes the explorer gui on w10 and it only supports .zip (which could've been changed on w11, never used, never tried)

gertop · 6 months ago
Zip support has been in Windows since XP.

In 11 (and maybe later 10 updates) they added 7z and rar support.

FirmwareBurner · 6 months ago
It does ship with one, right click on zip file -> extract all. Why are you posting incorrect information that would have been clarified to you by a 3 second google search beforehand?

It didn't ship in the distant past due to anti-competitive reasons but it is there now.

rjsw · 6 months ago
It doesn't ship with a working unarchive utility, the one that is included will discard anything that goes over the maximum pathname length.
doctorpangloss · 6 months ago
It ships with a very terrible wizard. Maybe I should say, why does the Windows unarchiving feature suck?
Suppafly · 6 months ago
It does, but it's annoying because it treats things as folders, which I suppose is nice if you just want to look inside the zip, but a pain if you just want to extract something in a normal way like you'd do with any other unzipping utility.
SomeHacker44 · 6 months ago
I wish there were an easy way to get Explorer not to show Zip files as a "folder." Such a huge anti feature for me.