News for hackers. Stuff that matters.
Re:7-Zip for Linux by marcodiego on Thursday March 11, 2021 @02:31PM (#26428000)
Even considering that this is for linux, I still get pretty sad whenever I see windows users running winrar. 7-zip is simpler to use, (mostly) as fast and as compressed as rar. I really see no reason windows users still use winrar.
Re:7-Zip for Linux by franga2000 on Thursday March 11, 2021 @02:44PM (#26428160)
WinRAR is much easier to use than 7-zip in my experience. PeaZIP is easier than both, but WinRAR still wins on the "you don't actually need to know what a zip file is" point. It's both a blessing and a curse though - I've had a couple of situations where people were running portable programs from zip files and promptly losing their work once they closed WinRAR.
Re:7-Zip for Linux by pitaj on Thursday March 11, 2021 @03:00PM (#26428343)
> WinRAR is much easier to use than 7-zip in my experience.

In what way?

Re:7-Zip for Linux by franga2000 on Thursday March 11, 2021 @03:10PM (#26428443)
The big icons make way more sense and more things have icons, the ".." line is more natural than the dedicated "dir up" button, the "create archive" dialog is more organized and its options more discoverable...

And when you run an executable from it, it (I think) unzips the whole archive, not just the file, so DLLs etc. can be loaded properly. Just saves some effort and thinking when you need it and doesn't make a difference when you don't

Re:7-Zip for Linux by auganov on Thursday March 11, 2021 @04:33PM (#26429261)
Never compared archivers at length, cannot speak as to the actual features. But 7z has this distinct unfinished open-source GUI tool look. That's all I remember about it. It may or may not be true that it has poor UX. But the aesthetics certainly do signal this. Personally, on Windows I used 360压缩 which seems to be a better looking winrar clone without nag screens. On Linux it's "atool -x" for extracting (there's no decent Linux file explorer, so the main selling point of archiver guis is moot too).
Re:7-Zip for Linux by moistbar on Thursday March 11, 2021 @04:43PM (#26429372)
> there's no decent Linux file explorer

Dolphin, PCManFM, and MC would all like a word with you.

Also, 7Zip is no harder to use than the built-in Windows zip extractor if you use the context menu.

Re:7-Zip for Linux by unixhero on Friday March 12, 2021 @01:36AM (#26432785)
Thunar, will also want to have a say
Re:7-Zip for Linux by ZoomZoomZoom on Thursday March 11, 2021 @06:42PM (#26430477)
> there's no decent Linux file explorer

There's Double Commander, which also works great on Windows and beats sibling-mentioned Dolphin and even PCManFM hands down.

There's also Ranger and nnn, if you need a CLI and don't want an orthodox file manager.

Re:7-Zip for Linux by subsection1h on Thursday March 11, 2021 @06:33PM (#26430415)
> there's no decent Linux file explorer

If this is true (and I wouldn't know because I haven't had a GUI file manager on my Linux desktop since the early 2000s), it's because GUI file managers are for casuals.

Re:7-Zip for Linux by MeinBlutIstBlau on Thursday March 11, 2021 @08:19PM (#26431198)
7zip is hard to learn because it's straight to the punch with no BS. Regular people don't like that stuff. They want nice visuals and receive cognitive dissonance for something they pay for.
Re:7-Zip for Linux by franga2000 on Friday March 12, 2021 @02:50AM (#26433227)
Cognitive dissonance?? Do you see how full of yourself you are being? Other people like something different than what you like - deal with it!
Re:7-Zip for Linux by badsectoracula on Friday March 12, 2021 @12:56AM (#26432584)
WinRAR is better as an archiving tool than 7zip. It has more features, recovery records, a much better self-extracting generator (7zip's is laughably primitive), more ways to compress files (e.g. compressing multiple folders into separate archives) and it is also much faster than 7zip when compressing. Also AFAIK it is the only that supports NTFS streams, though i'm not sure how often that is needed (but might be, e.g. for preserving the downloaded status of files).

And very annoyingly, 7zip has had for years a race condition where when you open a file inside an archive, it extracts the file in the temporary folder and then... it deletes it before the associated application manages to load it. It is hit and miss when it works - often it does, but then for some reason i haven't figured out it just deletes the file. And related to that 7zip extracts only the file you double click on, so e.g. it doesn't extract any data files an executable might need or images or subpages an HTML file may refer to.

I have both installed and in my experience WinRAR is by far the better tool when it comes to handling archives with the main exception (and the only reason i have 7zip installed) being that 7zip supports extracting from far more archive formats - including disk images (i use it all the time to extract files from VirtualBox, PCem, etc disk images and seems to support a variety of file systems too).

Re:7-Zip for Linux by jug on Friday March 12, 2021 @05:04PM (#26441550)
Yes — what 7zip has going for it is that it’s free, good format support and probably usually slightly better compression ratio. But that’s basically it. WinRAR is a very competent archiver tool where you might prefer it for many reasons. One annoyance I have with 7zip is its surprising number of non-implemented features. Just today I tried dragging a file to replace an existing and got the message “access denied”. That was like code for “not supported” because deleting the file first worked. Sometimes you do get sudden “not implemented” though for the most basic operations even after all these years.

I’m not dissing Igor Pavlov. He’s a very skilled developer as for compression format development. But he ought to get some assistance on the archiver software front.

Re:7-Zip for Linux by smnrchrds on Thursday March 11, 2021 @02:38PM (#26428077)
Back in the day, one of the selling points of the RAR format was that it could partition large files into multiple archives, so you could upload it in chunks, or copy it to multiple flash drives or CDs. Have other archive formats caught up with this feature?
Re:7-Zip for Linux by agurk on Thursday March 11, 2021 @02:47PM (#26428198)
I was about to reply a little snarkily that I was doing this with zip archives on floppy disks back in the 90s. I thought I might as well check my facts before posting, and it looks like that was a part of WinZip that was not part of the standard.

In 2015 ISO published a standard pertaining to zip archives, and one of the specifications was (from Wikipedia):

  Archives may not span multiple volumes or be segmented.
There are also multiple forum posts when you search for multipart zip archives of Linux users asking how to decompress them, suggesting that this is only WinZip behaviour and not common to the zip standard.
Re:7-Zip for Linux by marcodiego on Thursday March 11, 2021 @04:53PM (#26429484)
I remember people using arj exactly because of that feature. Compression with arj was worse than zip but people used it because you could divide an arj archive in floppies. At the time, rar could do it too, but it only got popular later.
Re:7-Zip for Linux by diggernet on Thursday March 11, 2021 @04:10PM (#26429047)
I had the same reaction, but checked a different set of facts than you did. PKZIP 2.04g (which at the time was the standard) supported split archives, in January 1993. WinZip added support in version 8.1, in 2001.

Edit: I just found the page where you got your quote. Looks like ISO was deliberately defining a subset of ZIP.

Re:7-Zip for Linux by scaladev on Thursday March 11, 2021 @02:43PM (#26428155)
Caught up? tar has had this for a few billion years at least:

  $ tar cazf - file1 file2 | split -b 700m - out.tgz
7zip also natively supports splitting for as long as I can remember.
Re:7-Zip for Linux by progval on Thursday March 11, 2021 @02:47PM (#26428204)
You didn't address this:

> or copy it to multiple flash drives or CDs

How would you use 'split' without either dumping the whole archive on disk or pluggin all drives at the same time?

Re:7-Zip for Linux by epmos on Thursday March 11, 2021 @03:36PM (#26428713)
tar was designed for tape, so you can specify a volume size for the output and it will break it's output into segments of that size. Using split isn't required.

The options in gnu tar are -L and -M for specifying tape length (in KB) and creating multi-volume archives.

The -L version is handy as it can prompt you to change the "tape". It has built-in tape handling as well, if you are using a real tape that can be controlled via mt.

Apparently (just checked info) it supports an arbitrary command to execute at the end of each archive. That would be handy for burning CDs, though I don't remember that feature from when I used floppies or QIC-40 to move files from one machine to another.

Around 1991-ish I would use these options to put archives onto stacks of floppy disks. The floppies didn't have a filesystem, just blocks of tar archive. In the days of 9600 bps modems, this was often the fastest way to move stuff to another machine. I had an often-reused stack of 3.5in HD floppies labeled with numbers for this purpose.

Re:7-Zip for Linux by fogihujy on Thursday March 11, 2021 @04:53PM (#26429491)
ARJ had that feature and it predates RAR by a few years.
Re:7-Zip for Linux by ReactiveJelly on Thursday March 11, 2021 @11:58PM (#26432357)
Isn't that just the same as splitting any file into multiple chunks? Why does the archive format have to know about it? For non-solid compression? Otherwise, any file can be split up and re-combined at the other end, unless you don't have the hard drive space to recombine it.

The only way I've seen RAR used in torrents is to package everything into one big file, and since they're usually video or audio that already has lossy compression, and since I may want to prioritize or skip certain files, it's both pointless and annoying.

Re:7-Zip for Linux by marcodiego on Thursday March 11, 2021 @02:41PM (#26428125)
I don't know, but I think such feature would be way less valuable today.
Re:7-Zip for Linux by tener on Thursday March 11, 2021 @02:46PM (#26428182)
There are niche uses, mostly with some forms of file sharing with limited file size. For example email attachments, but not only this.
Re:7-Zip for Linux by sitzkrieg on Thursday March 11, 2021 @02:43PM (#26428147)
true but its still used heavily on eg usenet binaries, and nzb tools run the 100s of unrar for you not unlike the gui
Re:7-Zip for Linux by tener on Thursday March 11, 2021 @02:45PM (#26428169)
7zip for sure has. It actually supports it for more than just 7z format.
Re:7-Zip for Linux by eps on Friday March 12, 2021 @05:16PM (#26441628)
Multiple floppies! Floppies... "flash drives"... pfft.
Re:7-Zip for Linux by Mojave3 on Thursday March 11, 2021 @05:14PM (#26429676)
I mostly use 7zip but I've had a number of archives in the past that would simply not properly extract using 7zip and WinRAR had no issues with. 7zip is fine, however I don't see it as superior really in any notable way. I don't understand why everyone is crazy over it at this point. It's good, but so is WinRAR. Why is it sad for people to use one good program over the other when they both accomplish the same thing in about the same way? There's very little special about 7zip for typical day to day use.
Re:7-Zip for Linux by devwastaken on Thursday March 11, 2021 @02:46PM (#26428190)
7zip does not properly handle japanese character sets on Windows. Winrar does, though you have to specify the language.
Re:7-Zip for Linux by pitaj on Thursday March 11, 2021 @02:59PM (#26428327)
In the UI? In file names? In the file contents?
Re:7-Zip for Linux by fredoralive on Thursday March 11, 2021 @03:22PM (#26428566)
I have vague memories that things like Shift JIS file names get scrambled? IIRC it was a case of it using the users default non-Unicode / “ANSI” codepage instead of offering a selection like Winzip apparently does.
Re:7-Zip for Linux by devwastaken on Friday March 12, 2021 @02:06AM (#26432955)
In the extracted contents. Various assets for Unity would come with folders and file names in Japanese. 7zip would extract them without the proper names and so all relative patching would be completely messed.

Winrar does it fine.

Re:7-Zip for Linux by alternatetwo on Thursday March 11, 2021 @06:57PM (#26430584)
I use winrar because it can add a recovery record to the file, so if the file gets corrupted some years down the line I can hopefully repair the archive. 7z cannot do this, unless you create extra par2 files next to it afterwards.
Re:7-Zip for Linux by LinuxBender on Thursday March 11, 2021 @02:53PM (#26428255)
The only thing that comes to mind is the lack of par files or some equivalent construct.
Re:7-Zip for Linux by diarrhea on Thursday March 11, 2021 @02:33PM (#26428016)
Perhaps they paid for it and it's a sunken cost fallacy.
Re:7-Zip for Linux by marcodiego on Thursday March 11, 2021 @02:40PM (#26428108)
Most people I see using winrar have not paid for it. And they have to deal with the snag screen every time. I think it has to do with inertia.
Re:7-Zip for Linux by scaladev on Thursday March 11, 2021 @02:50PM (#26428226)
Educate them if you can. Whenever I see someone using crapware like bandicam I give them a link to OBS Studio and briefly describe its advantages. Same for winrar and 7zip. They usually don't know any better and were using whatever everyone else was using.
Re:7-Zip for Linux by tener on Thursday March 11, 2021 @02:47PM (#26428201)
Companies tend to use it and buy new licenses due to the same inertia you mentioned. Although the more cost conscious will at some point switch to the free alternatives.
Re:7-Zip for Linux by MikusR on Thursday March 11, 2021 @02:54PM (#26428263)
Recovery records.
Re:7-Zip for Linux by hansel_der on Thursday March 11, 2021 @02:52PM (#26428244)
maybe they want to unpack rar-archives?
Re:7-Zip for Linux by pitaj on Thursday March 11, 2021 @03:00PM (#26428333)
You can do that with 7zip IIRC
Re:7-Zip for Linux by marcodiego on Thursday March 11, 2021 @03:16PM (#26428501)
AFAIK there're opensource decompressors for rar files. Except for RAR6 which are definitely not very common.
Re:7-Zip for Linux by alternatetwo on Thursday March 11, 2021 @06:58PM (#26430598)
In fact, unrar has been open sourced by WinRAR themselves. Or rather, they made the source available, with certain conditions, i.e. not using it to reverse engineer the rar format.