Does ArchLinux on ARM64 has any equivalent for AUR?
Hello fellow Arch users,
I hope everyone is staying safe. So to give a little background. I am relatively new to linux. I have used Ubuntu on arm64 before and I have some experience on x86 (currently running POP_OS and Manjaro).
One of the things I liked about Manjaro is having pamac to search and install AUR packages. I have read the documentation for Arch x86 and I kind of get the two methods of installing AUR packages (Using makepkg -si or first installing an AUR helper like yay and using it to install packages). However for arch arm linux, the archarm repo doesn't have any AUR helpers. How would I be able to download and install AUR packages? Is there a specific AUR for arm?
Thanks
About this post
- Posted
- Archived
- Score
- 16 · 79% up
- Kind
- Text
- ID
- ge8oit
14 comments
You can install packages from the AUR in the same way as on vanilla archlinux. Arch also won't have any AUR helpers in the main repos, as this is unsupported. Manjaro is the odd one out in this case.
Some packages from the AUR specifically support arm64 in the arch=() field in the PKGBUILD, others you can force to build with makepkg -A (skipping the arch check), others won't work at all.
It requires some experimentation on a case by case basis.
I see, when i searched AUR, the search page only showed the option to filter aarch either by x86-64 or any. Nothing specific to aarch64/arm64. However it does seem it depends if maintainer has an arm package or not right?
So to install I first wget the files, then cd into it it, and then run makepg -acs?
Yeah, the AUR, and AUR helpers like Yay even have aarch64 builds. Some packages on the AUR do have aarch64 versions, and you will get a warning if you attempt to install a package that doesn't build for aarch64. Though just because the maintainer doesn't specify aarch64 in the pkgbuild doesn't mean it won't work, it's really just a try it out situation.
Ahh okay, guess experimentation it is!
u/hitchar had a great response.
Some applications won't be compatible with your systems architecture and you'll get a warning that reads "Incompatible architecture. Install anyways?". (using yay)
Your software selection would be limited compared to and x86 machine, but AUR would generally work the same on ARM.
ahh okay! Im just looking to install a few (namely paraview, scilab, gmsh,getdp and freecad to test phone performance)
PKGBUILD supports specifying arm architectures. It's up to package maintainers to add the support. There are tons of ARM-specific and architecture-independent packages in AUR.
I see, when i searched AUR, the search page only showed the option to filter aarch either by x86-64 or any. Nothing specific to aarch64/arm64. However it does seem it depends if maintainer has an arm package or not right?
From the PKGBUILD arch wiki page
An array of architectures that the PKGBUILD is intended to build and work on. Arch officially supports only x86_64, but other projects may support other architectures. For example, Arch Linux 32 provides support for i686 and Arch Linux ARM provides support for arm (armv5), armv6h (armv6 hardfloat), armv7h (armv7 hardfloat), and aarch64 (armv8 64-bit).Example of a package made for ARM
Seems like what you're talking about is a limitation of the search tool.
EDIT: Formatting
I see, when i searched AUR, the search page only showed the option to filter aarch either by x86-64 or any. Nothing specific to aarch64/arm64. However it does seem it depends if maintainer has an arm package or not right?
I have yay installed on my Android phone with TermuxArch. It's basically alarm in a proot container. I've successfully compiled many packages from the AUR.
Oh neat, I used TermuxArch before, right now my Arch install is running inside a Proot that UserLAnd app created. How did you use yay to install things? I know i can use makepkg to get yay, but is it as simple as yay -S package name?
Also mind linking the aur page for yay that supports aarch64? I can only find x86-64 version.
You simply download the
pkgbuildfor the aur helper you want to use and then build and install usingmakepkg.More info:
https://wiki.archlinux.org/index.php/Arch_User_Repository#Installing_packages
You can also use
pamacon arch and it does indeed support aarch64:https://aur.archlinux.org/packages/pamac-aur/
Thank you, I will try this later on. Kinda excited to get pamac to work xD.