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.
About this post
- Posted
- Archived
- Score
- 8 · 76% up
- Kind
- Text
- ID
- kvtpus
19 comments
AUR updates come in three main flavours:
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
$ yaymanages to runpacman -Syuwhen 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.
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 -Syuby itself - I guess it's possible that I'd always just run something else withsudoand the authentication was still lingering when I ranyayI would suggest you to configure makepkg. Especially make it use all your cores.
Thanks! I'll look into that
Didn't know about this, thanks for the tip
Deleted before we saved it.
I know, I read that in the man pages, but I have this paranoia that one day
yaywill start running something else, something withddin 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 satisfyingFor updating -git packages, use
yay -Syu --devel.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.
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.
Search "yay" it's the most popular AUR helper that let's you update AUR and pacman at once
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
yayfor example, because it handles AUR packages as well as the other ones via pacman.Here to spread the good word about paru - https://old.reddit.com/r/archlinux/comments/jjn1c1/paru_v100_and_stepping_away_from_yay/
Use 'yay'. It does everything pacman does plus checks for updates on AUR packages you have installed.
Here to spread the good word about paru - https://old.reddit.com/r/archlinux/comments/jjn1c1/paru_v100_and_stepping_away_from_yay/