Skip to content

Benefits of aurutils vs yay

Hello, I am new to Arch but I've read all the relevant arch wiki pages, learned to manually install AUR packages (don't understand the difference between makepkg -si and makepkg + pacman -U though), and read up on as much info on the AUR Helpers as I could.

​

However, I'm not exactly understanding the benefit to something like aurutils over yay. It is my understanding that the major difference is that aurutils is just a downloader+builder, while yay is a pacman wrapper. There is no info that I can find on the wiki making the distinction but I assume a pacman wrapper basically replaces pacman commands with yay commands?

​

Other than that, I see lots of people saying aurutils is superior to all other helpers because it creates a local repository which can be used to search files and uses a clean chroot. I don't really understand the point of a local repository for AURs since the large majority of people won't have so many AURs that would really need that. I've read that it helps with not having to rebuild again on a new computer right? But why is that really a big deal to anybody on modern computers? Especially somebody using a time consuming distro like Arch?

​

I've read that the clean chroot is beneficial because it makes sure you don't have missing dependencies. But I thought that was the point of something like yay as well since it tells you to look at the pkgbuild.

​

I'd appreciate somebody clearing up whatever misconceptions I'm having and explain the real need of aurutils over yay. I'm trying to maintain a minimalist KISS philosophy with what I'm doing, which is why I like Arch, but at the same time I don't want to use the "easy" alternative and miss out on important features.

65 points35 comments
Open on Reddit
About this post
Posted
Archived
Score
65 · 100% up
Kind
Text
ID
a8lize

37 comments

don't understand the difference between makepkg -si and makepkg + pacman -U though

There's no difference. The -i option just makes you not have to run pacman separately afterwards, so it's convenient.

32 points
unknown author

Ah, thank you for clearing that up.

5 points

Any helper that wraps pacman smears the difference (technical and content-wise) between the regular arch repositories and packages built from the AUR. An AUR package is build- and installable with the same tooling as a repository package. This means that you (essentially) trust in AUR packages being the same quality as repo packages.

Using makepkg or aurutils adds very deliberate steps to the build process for AUR packages. Both presume that you properly verify the build files for your AUR packages. Additionally aurutils makes it easy enough to keep a private repo where you keep packages for multiple machines for example, build it once into the custom repository, add said repository to all your machines.

28 points
unknown author16 hidden

Doesn't a pacman wrapper like yay still prompt you to read the pkgbuild? I can see how for a newbie like myself it can be dangerous to look at the AUR like its the official repository, but for people who are experienced enough to even use aurutils, what exactly is the danger in using a pacman wrapper when it seems all the major ones like yay prompt you to read the pkgbuild.

As for the private repo, what I currently do is have a pacman hook print out all my packages to a file and according to the wiki I can use this file to reinstall everything if I ever go onto a new machine or wipe my current one. Is this not possible with a pacman wrapper for example?

I understand what you're saying but I'm not really seeing any real benefit unless said person has like 10000 AUR packages. Most people just install Chrome, Spotify, Discord, and a handful of other things from the Aur and that's that as far as I know and that would take like 5 minutes to download and install on a new machine. But I could be wrong.

Edit: But to clarify, if it's just convenience I understand. But is there any fundamental aspect to aurutils that simply makes it "superior" to a pacman wrapper as I've read on a lot of posts here? Is using a clean chroot in aurutils as opposed to not using one in yay going to fundamentally make my packages risky to build or something? I'm more concerned with if at the end of the day, the packages build properly and update properly without me having to run a bunch of different commands.

12 points

yay does its job, but aurutils gives you absolute control over everything and more flexibility.

For example, having multiple local repos, one for normal aur packages, and one for VCS aur packages. Manually building chromium-vaapi on multiple machines really sucks. Its nice to build once, and share the repo on the lan. Also, chroot builds.

9 points

I've found aurutils better when maintaining a desktop and two laptops all running arch, by having a single custom repository shared between all three. That way I only have to build each package once and then I can install it on the others with a simple pacman -S.

4 points

I don't really understand the point of a local repository for AURs since the large majority of people won't have so many AURs that would really need that. I've read that it helps with not having to rebuild again on a new computer right? But why is that really a big deal to anybody on modern computers? Especially somebody using a time consuming distro like Arch?

I assume with "time consuming distro" you meant that it requires more manual maintenance than others (which may or may not be true). Even if that's the case, why should you waste time with compiling stuff multiple times (in case you don't care about the benefits of compiling software on the target machine)? Let's assume you have several systems running Arch, one of which is a build server. You could simply trigger a rebuild of all outdated packages on the build server and then update your other systems simply with pacman -Syu, since now AUR packages are in a repository. (More on that here.)

Also, Aurutils lets pacman handle many things that other AUR helpers have to implement themselves (e.g. handling split packages). That makes it simpler, while leveraging the strengths of pacman.

I've read that the clean chroot is beneficial because it makes sure you don't have missing dependencies. But I thought that was the point of something like yay as well since it tells you to look at the pkgbuild.

Did you ever find missing dependencies by simply looking at a PKGBUILD? The thing is, if you coincidentally had the dependency installed, the building and packaging will work anyways, though the PKGBUILD is actually faulty and you won't notice it. If you build in a clean chroot you will receive an error, with which you can fix the PKGBUILD - and that is useful for maintainers.

10 points

But next to useless for end users. Speaking as one, if it works (even when it shouldn’t) then I’m happy. More broadly, correctness for correctness’ sake holds no value for me. I follow best practices only insofar as they save me time in the long run. (To be fair, they usually do: that’s why they’re best practices!)

If I were a maintainer (or rather, those times when I am wearing that hat), then I’d care a whole lot more.

8 points

I think it's hard to draw the border between user and maintainer here. If you consider my example above, you are still a user, that has a few systems running Arch. And in that case you may very well be concerned about the dependencies being declared correctly, since the packages will be installed on different systems with different packages installed.

And even if that example was not your case, you may still be interested in Aurutils for other properties, for example due to its simplicity and how it makes usage of functionality already provided by pacman. In the end, use what you think is best for the job.

4 points
unknown author2 hidden

How many machines do you have dude? I have a desktop and a laptop and I imagine other than sys admin everybody else does too. The time "wasted" compiling is less than we are spending discussing this.

As for your second point, I'm not a maintainer.

I don't mean any insult at all, but it seems that all the reasons people like aurutils is because it's "better" but when you ask how, you get responses that have no real benefit to the large majority of normal users. It's coming off as elitist to be, but maybe I'm just not getting it. Also, yes Arch is more time consuming by nature than most popular distros. Insinuating otherwise because you can install Arch in under 8minutes after having likely spent dozens of hours figuring out how you like it configured and reading the wiki is simply disingenuous

7 points

The time "wasted" compiling is less than we are spending discussing this.

That depends on what you're compiling. Compiling chromium for example takes a a good hour and a fair amount of RAM and it's updated frequently.

If all you use from AUR is one or two packages that are either very small or precompiled then yeah, it's not that big of a deal either way, but if you use a bunch, some with a bunch of dependencies, then aurutils can save you a bunch of time and headaches.

4 points

The time "wasted" compiling is less than we are spending discussing this.

Also, yes Arch is more time consuming by nature than most popular distros. Insinuating otherwise because you can install Arch in under 8minutes after having likely spent dozens of hours figuring out how you like it configured and reading the wiki is simply disingenuous

You're comparing once-in-a-lifetime things to activities that you may do weekly (e.g. rebuilding packages, which takes me around an hour every week). I never installed Arch twice on the same machine, so I don't really care much about how long it takes to install it. I do rebuild stuff periodically, so that's what I'm going to optimize.

As for your second point, I'm not a maintainer.

You asked for usecases, I didn't know you're not one. (But remember, when you publish a PKGBUILD in the AUR, you become a maintainer in this context).

I don't mean any insult at all, but it seems that all the reasons people like aurutils is because it's "better" but when you ask how, you get responses that have no real benefit to the large majority of normal users.

I don't see anyone praising aurutils for no reason. If the benefits mentioned (including the simplicity aspect, which somehow was forgotten) don't appeal to you: As mentioned somewhere else here, use what you think is best for the job.

4 points

Aurutils has lot of flexibility, but virtually none of its advantages apply if you have a single computer or a low number of packages across a few computers.

I don't buy the "better to separate from origin" argument, yay makes it clear enough about what comes from the repositories or the AUR. Under this light, and in my own situation, aurutils is more cumbersome just for the sake of it compared to yay.

4 points
unknown author3 hidden

Again, maybe I'm totally off and just being ignorant, but it just seems to me like one of those "I use arch btw" bragging things where using something complicated for the most niche of benefits is "cool". Which goes against KISS entirely imo. If yay does the job and is simple, why overcomplicate it if you subscribe to Arch philosophy? But yes, for a sysadmin, a dude with lots of computers, or a dude with lots and lots of packages I can definitely see the benefit. But I'm not wrong in thinking for a normal user with a laptop and desktop and a handful of packages, yay is simply more convenient am I?

2 points

But I'm not wrong in thinking for a normal user with a laptop and desktop and a handful of packages, yay is simply more convenient am I?

You're not wrong. In fact, I'd say you're quite competent if you understand you need to choose the best tools that match your situation.

2 points

AUR helpers are just a convenience, and I won't repeat what others have already said. I can tell you that today I installed my first program (inxi) from AUR today without a helper after glancing over the relevant wiki page.

Oh, and I installed Arch two days ago for the first time, too. So it's super easy.

2 points
unknown author2 hidden

You aren't going to be getting automatic updates though so that's going to be a pain in the ass to track.

2 points

No, I won't. But at the same time, I don't plan on using AUR for a bunch of programs anyway. And the ones I do use work fine even on older versions.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.