this post was submitted on 16 Jan 2024
38 points (82.8% liked)
Linux
48090 readers
743 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Offtopic, but why on earth would anyone use .rar? It's a proprietary format. The reason there's basically no software to create or modify .rar archives is due licensing, which makes it illegal to write software that can do it.
Looking at the rarlab's website, it appears that only the MacOS version has an ARM build. For Linux, only x86 and x64 are listed.
So, either use MacOS, use emulation to run the x86/x64 version or break the law.
No idea. I didn’t choose rar. These are archives that I have to deal with.
I’m doing a favor for a friend, and the files were given to me as rar archives. Obviously my first mistake was offering to help, though the reason I offered is because I’m learning scripting and regex. It’s a good challenge for me, and I’m learning stuff I didn’t know, so goal accomplished for me. Also none of this is paid or business/work related stuff. Just helping a friend out.
Anyway, now that I’ve learned that rar is proprietary, I’m gonna see if they care if I convert them all to zip or tar. The scripting to convert them will be another good challenge and will avoid this rar problem.
The most compatible archive type is probably zip. Your friend is probably using WinRAR (why on Earth someone would use WinRAR in 2024 is beyond me), and it can handle standard .zip files just fine.
Just do
As an added bonus, you can list all the files in an unrar file (with
unrar -l .rar
), extract them to a specific directory, add them all into a zip file with the above command, and then empty the unzipped directory for the next .rar.