Hi everyone,
Former Arch user here who has been using NixOS for the past few years.
Every now and then, like today, I get this strong urge to come back to Arch, even if just temporarily, to relive the experience since it’s been a while. However, there’s always one particular aspect of Arch that gives me pause and ultimately keeps me from making the switch back: the AUR (Arch User Repository).
Before I get into it, I want to be clear that this is not a post meant to criticize Arch or imply that NixOS is superior. Both distributions have their own set of pros and cons, and NixOS certainly has its fair share of drawbacks as well. I’m simply looking for some honest feedback from the Arch/EndeavourOS community about my concern.
The concern I’m talking about is the security of the AUR.
On NixOS, all packages come from the official nixpkgs repository, which is maintained through GitHub pull requests. Each package is reviewed, vetted, tested, and only then pushed to the repository when deemed safe. This centralized and strictly managed approach has always given me peace of mind when installing software.
With Arch and the AUR, though, it feels different and this has always been a mental block for me. While the AUR is incredibly vast and convenient, it feels a bit like the wild west. Anyone can upload a PKGBUILD, and unless you’re personally inspecting each PKGBUILD before installing or updating, there’s always an inherent risk. Realistically speaking, I imagine most users do not manually inspect PKGBUILDs every time they install or update something from the AUR, and I’m willing to bet my savings on that.
I’m aware that nixpkgs can actually be installed on Arch, which would theoretically solve the problem of package security. However, for me personally, that would defeat the purpose of switching back to Arch in the first place. One of the main reasons I sometimes feel drawn to use Arch again is because of the vast selection of packages available in the AUR, some of which are either missing from the nixpkgs repository or left unmaintained. So while I do value the higher level of security that NixOS provides, I also miss the convenience of having access to practically any package imaginable through the AUR. Unfortunately, that lingering concern about security always keeps me from making the switch.
So my questions to you all are:
- Do you personally inspect the PKGBUILD every time before installing a package or updating it from the AUR?
- What’s your general take on AUR security and how do you personally mitigate any potential risks?
- Has anything changed in recent years to make the AUR more secure or streamlined in terms of safety?
I’m strongly considering reinstalling Arch this week, but I really wanted to get some input from the community first. This has always been my biggest hesitation and, and I’d love to hear how some of you approach this concern.