Arch noob here: Is there a single command to install from the AUR? And if the answer is no, why not?
Read https://wiki.archlinux.org/title/Arch_User_Repository
“Installing from the AUR” usually means:
- Cloning the AUR repo
- Installing build dependencies
- If any of those are AUR packages, recursively repeat
- Download source files from arbitrary online location
- Run arbitrary commands to build
- Pack it all into a tarball
- pacman -U the tarball
Anyone can easily register and upload AUR packages in seconds or minutes.
This makes it a high-risk vector for malware and there is indeed malware uploaded to the AUR all the time. Looking at the NPM malware development, the increased popularity of Linux, and the already ongoing cyberattacks on AUR itself, this will only get worse.
The idea is that you are expected to manually inspect and vet the PKGBUILD yourself by doing these steps before you run makepkg itself. With great power comes great responsibility. Developers realize that it is not responsible to make a tool specifically designed to make dangerous behavior and explicitly bypassing safeguards, stopgaps and best-practice protocols more convenient than the alternative, when it will be targeted to uneducated users.
As wltr mentioned, there are helpers, but you really should pick one that involves that manual inspection (like aurutils), and after becoming comfortable enough with git+makepkg+pacman to make it routine.
TLDR: If you can’t or won’t vet PKGBUILDs of AUR packages you shouldn’t be blindly installing them.


