33
I'm an idiot (arm) (lemmy.world)
submitted 9 months ago* (last edited 9 months ago) by harsh3466@lemmy.world to c/linux@lemmy.ml

EDIT: Putting this at the top because not everyone is seeing what I actually need. I can unpack the rar archive just fine. What I can’t do (on arm) is add to/update the files in the rar archive. I have unrar already installed. What I can’t install is the rar package to create/update rar archives.

So I’ve been banging my head against the wall for about half an hour trying to install the rar package from the multiverse repository on an Ubuntu 23.10 vm I have running on my m1 mac mini. I finally ended up on https://pkgs.org and searched up rar to see if I could download it directly instead of using apt.

And it was there I realized there’s no arm version of rar.

Side note, any recommendations for an arm utility that handles rar files? I already have unrar-free installed, but what I need is something to update/add files to existing rar files.

Worst case scenario I unrar them and then repackage them with tar or zip, but if I can just work with the rar archive, I’d prefer that.

Edit: I got excited for a second remembering that I’ve got rar installed via homebrew on that same m1 mac, but when I tried to install homebrew in the vm, I learned that homebrew doesn’t officially support arm.

all 26 comments
sorted by: hot top controversial new old
[-] bitwolf@lemmy.one 7 points 9 months ago

Can 7zip unrar? That's my go-to form anything compression.

[-] Fisch@lemmy.ml 2 points 9 months ago

Yes, it can

[-] Atemu@lemmy.ml 1 points 9 months ago

Only with the unfree unrar plugin.

[-] harsh3466@lemmy.world 1 points 9 months ago

Unrar isn’t the problem though. I’ve already installled unrar to read the file in the rar I need to modify.

What I was looking for is rar so that I can modify the text in the file and update the rar archive.

[-] Atemu@lemmy.ml 7 points 9 months ago

There is unrar which is source-available but its license is unfree because it restricts usage. See: https://fedoraproject.org/wiki/Licensing:Unrar

[-] harsh3466@lemmy.world 2 points 9 months ago

I do have unrar installed, but I’m not able to modify in place or add new files to the archive with it, which is the functionality I’m missing.

[-] Atemu@lemmy.ml 3 points 9 months ago

Indeed it won't modify rar archives. What do you need those for?

The typical flow for rar archives is to unpack them and then either leave the files on disk as plain files or put them into a better archive format such as 7z.

[-] redxef@feddit.de 4 points 9 months ago

You could install qemu-user and register it in binfmt in the vm, that lets you run programs for other architectures.

[-] harsh3466@lemmy.world 2 points 9 months ago

This sounds interesting. I’m gonna look into it. Thank you!

[-] AI_toothbrush@lemmy.zip 4 points 9 months ago
[-] harsh3466@lemmy.world 0 points 9 months ago
[-] SheeEttin@programming.dev 3 points 9 months ago

Have you tried building it?

[-] danielf@aussie.zone 1 points 9 months ago* (last edited 9 months ago)

RAR isn't open source.

[-] 2xsaiko@discuss.tchncs.de 2 points 9 months ago* (last edited 9 months ago)

the answer for "what can unpack this archive" is pretty much always: bsdtar from libarchive

edit: sorry, I can't read. libarchive unfortunately can't write RAR archives.

[-] avidamoeba@lemmy.ca -2 points 9 months ago* (last edited 9 months ago)

As a last resort you could install docker from apt, build an image from a distro has rar in its arm repos, then run containers ephemerallly, mounting your work dir into the container where rar runs. Try the suggested methods of getting a binary first. 😅

docker run --rm -v /your/work/dir:/destination/in/container your_image rar ...
[-] harsh3466@lemmy.world 2 points 9 months ago

Haha. Definitely last resort. Having learned what a pain rar is due to its propriety nature, I’m going to see if they care if I convert them to tar or zip first.

[-] avidamoeba@lemmy.ca 1 points 9 months ago

Yup, moving away from rar would probably be best.

this post was submitted on 16 Jan 2024
33 points (82.4% liked)

Linux

47996 readers
1007 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

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS