Skip to content

What's the best way to keep AUR packages updated?

Closing in on my first month with Arch on a bare metal install, and I think I'm ready to start mucking around with AUR. How would I know when AUR packages are updated? Tried the Arch wiki, but all I found out was that AUR isn't officially supported and it's my own responsibility to update packages.

Thanks in advance.

8 points17 comments
Open on Reddit
About this post
Posted
Archived
Score
8 · 76% up
Kind
Text
ID
kvtpus

Author

2
posts
6
comments
0
media
View profile

19 comments

AUR updates come in three main flavours:

  1. An AUR package has been updated on the AUR page.
    1. Any AUR helper will do
    2. You could also compare all packages found by "pacman -Qm" with a query to the aurweb RPC interface and then git clone them.
    3. You could also keep the git repos from the AUR and check them for updates, but that's an additional layer of package management and we'd want to avoid that.
  2. Your AUR package has not been updated on the AUR page but needs to be rebuilt, because of a dependency update that makes a rebuild necessary.
    1. That's not trivial and I don't have a simple solution so far. I don't know an AUR helper that deals with that problem.
    2. I have encountered this problem on occasion, not often enough to warrant sitting down and solving it programmatically.
  3. An AUR -git (or other vcs) package has not been updated on the AUR page, but the project is miles ahead.
    1. This is hard to automate, since latest doesn't always equal best in -git packages. I'd generally prefer the non -git packages unless the AUR maintainer is super slow or you explicitly need unstable features.
    2. Incidentally, this hasn't been much of an issue for me. You usually keep track of your VCS packages manually, because you must have had a special reason to install them.
    3. Every VCS type would need its own set of version number resolution methods.
    4. AUR helpers don't handle this, as far as I know.
5 points

I'm about as (in)experienced as you with Arch, so take this with a pinch of salt, but I've been using yay -Syu. It takes forever to upgrade packages on my T420, though.

As an aside, I've often wondered how $ yay manages to run pacman -Syu when running the latter directly requires root privileges.

2 points

As an aside, I've often wondered how $ yay manages to run pacman -Syu when running the latter directly requires root privileges.

Either you will be prompted for your password with sudo, or you have passwordless sudo set up. It doesn't (and can't) bypass it.

8 points

I've never been prompted nor have I set up passwordless sudo. I'm not on my Arch machine now, but I'll try just running yay -Syu by itself - I guess it's possible that I'd always just run something else with sudo and the authentication was still lingering when I ran yay

1 points
unknown author2 hidden

Deleted before we saved it.

3 points

I know, I read that in the man pages, but I have this paranoia that one day yay will start running something else, something with dd in it that does nothing good to my system. Plus, if I'm honest, I'm still at that stage at which typing things in the terminal is in and of itself fun, and oddly satisfying

-2 points
unknown author4 hidden

There are AUR helpers, there is a page on the wiki that even compares them (sorry I can't share from mobile). It's much easier.

1 points

Found the page - thanks.

https://wiki.archlinux.org/index.php/AUR_helpers

Maybe I'm missing something but the page doesn't actually seem to list which helpers can update packages. Still, I can probably try a few of them and figure it out from there.

1 points

Search "yay" it's the most popular AUR helper that let's you update AUR and pacman at once

2 points
unknown author

At least the ones shown under "Pacman wrappers" can install packages, because they pass the commands to pacman after the package has been built. In the end I only use yay for example, because it handles AUR packages as well as the other ones via pacman.

2 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.