Skip to content

How Do You All Update Your Arch?

I know you're supposed to look over the updates and see the diffs and ensure dependencies are good and all that fun responsible stuff, but I type "yay" and mash Enter until I have to press the "y" key. Before yay, I used cower, before cower I would just pacman -Syu and periodically rebuild AUR packages manually using the usual method (still without any extra attention). I know this is bad and sometimes things have broken (I also don't take snapshots or meaningful backups!) but it's easy and this is how I've chosen to live my life.

How does everyone else handle updates? Anybody go hog wild on doing it the right way? What's your process?

60 points128 comments
Open on Reddit
About this post
Posted
Archived
Score
60 Β· 88% up
Kind
Text
ID
155ybpg

Author

31
posts
212
comments
0
media
View profile

140 comments

I simply do pacman -Syu and no issues in years.

71 points

This, and the same for yay. All the rest of my maintenance is just to clean up the cache and free up some space

2 points

Man just run 'pacman -Syu' and relax, people stress so much around Arch, like if the system would enter into a state of collapse if you don't do something like it should be

24 points

It can occasionally. You just need to check the news for anything that requires manual intervention.

-3 points

It's funny (to me) the paranoia around Arch. In the time I've been using Arch almost every issue that arose was because of ME, not because of updates.

E.g. installing a custom linux-tkg kernel and doing PCI-E Passthrough of a 2nd GPU to a VM had issues, fixed by reverting to linux-zen.

E.g. moving the config files for audio suppression (VAD) for pipewire/pulse to ~/.config/pipewire/ and forgetting to install the voice suppression package, causing my audio devices to just *not exist* because the pipewire services wouldn't start... took me a second to remember what the hell I just did to fix this.

E.g. Neglecting to set up snapper/btrfs-assistant and proper snapshots (pacman hooks for example) and after breaking something myself, having to tough it out and t/s instead of reverting.

I am sure it happens, just like in anything else, when updating introduces new bugs, weird behaviors, deprecates some config files and directories it looks at and introduces new ones. But it's not as common as a thing as it was described to be.

7 points

If it breaks just go back to your last backup and find out what went wrong

4 points

There are times that I updated once every 10 days and during that span, I am just hours behind a breaking change like the one we had in GRUB before (and others that i have forgotten). I was kinda lucky to update before I got a grub update.

I still don't read the arch updates. Flinging myself into chaos.

3 points
  • I use a Gnome extension to show me when updates are available (it uses checkupdates from pacman-contrib)
  • I have the kernel and related packages ignored in pacman.conf and I update them manually when I'm ready to reboot
  • I use informant to automatically check Arch News in case manual intervention is needed
  • I use pacman wrappers only for AUR packages, never to update the system
  • I try to install as few AUR packages as possible
22 points

rebuild-detector

5 points

That's also a great addition and it comes with a nice pacman hook. I forgot I had it installed because I haven't seen any output from it in a long time.

1 points

That extension is awesome. Only problem is I haven't figured out how to make it work with a different terminal. I don't like gnome terminal.

1 points

I just realized I've never actually used the Update now menu item :) I always have an existing terminal open somewhere and I run the update there.

I tried to change the default

gnome-terminal -- /bin/sh -c "sudo pacman -Syu ; echo Done - Press enter to exit; read _"

to

alacritty -e /bin/sh -c "sudo pacman -Syu ; echo Done - Press enter to exit; read _"

and it seems to work with Alacritty. The right command depends on the terminal you want to use.

3 points

You really do have to use the AUR to get actual work done on Arch. The official repos are quite lacking in comparison to something like Ubuntu LTS. Hell even a pretty basic feature (the ability to make Gnome-terminal transparent) (all my homies hate gnome-console, all my homies use gnome-terminal) which is available on any other distro running GNOME is locked behind an AUR package

-7 points

I just risk doing it the risky way and read nothing.

8 points

"Save myself 20 seconds now and hate myself later" squad ✊

7 points

I don’t know what I would look at anyway even if I did look at all the boring update info.

1 points

I just do yay and relax. In the case that something does go wrong I either downgrade a specific package or rollback with snapshots. Easy.

7 points

I go to the Arch website to double-check any advisories that have come out, `sudo pacman -Syuw` to download and cache all of the updates locally, and then `sudo pacman -Su` to install them.

5 points

Why cache and then install separately?

5 points

I'm used to working with limited bandwidth and dodgy network links, so I like to grab all of the updates up front and have them locally. In the past, I've been in the situation where my link died in the middle of `sudo pacman -Syu` so I only had some of the updated packages. I was able to cancel the process until we got things sorted out.

6 points

yay -Syu --devel

4 points

What's the flag do

1 points

If you install a *-git package from the AUR, it wont be updated by the yay command by default since it would have an update every time a commit was pushed which could spam some users with updates.

Adding the --devel flag makes it so that running yay will also update any *-git packages to the latest commit.

2 points

I have one big alias that:

  1. Runs reflector to find the fastest server.
  2. Blindly installs archlinux-keyring even if it's current.
  3. Updates with pacmatic so that I see recent announcements.
  4. Updates aur's with yay.
4 points

This is a good and sound workflow. Especially since every time I've ever had an issue with pacman, it's due to the keyring being out of date. I like that you added in the recent announcements as well, that was a nice touch.

I never blindly install AUR packages as I always do my research on them first, but other than that, I like it. +1

3 points

I am on the mailing list where notifications about manual intervention are sent. If none are needed, I just use pacman -Syu to update.

I don't use AUR helpers. Any AUR packages I use, I build in a chroot and add to a custom repo which I periodically rsync to my other Arch boxes. This is especially helpful when I set up a new Arch box, I can just scp/rsync the repo to the new box, add that repo to pacman.conf, and just install them with pacman without building everything again.

3 points

I type paru in a terminal as soon as I am logged in

3 points

I just yay -Syu once per week on my daily driver. Not reading update news/changelogs bit me in the ass a couple of times (<5, off the top of my head). At most it was 1-2hours of work/googling to get it resolved. I've had the same install for 10+ years.

2 points

This is basically me, but some people really don't like those 1-2 hours of googling and are really scared of the "I can't fix this" potential (understandably)

1 points

1 to 2 hours of googling? just subscribe to the email list or rss the feed, way simpler

1 points

I download the new iso every month and just do a clean install like God intended

2 points

Amen brother, gotta do the install without the installation guide 😀

0 points

I do both system and AUR updates with yay, that's kinda the point of yay.

I always check the diffs on AUR packages. I have only a few of them installed, so it's not a big deal. Most of the diffs are version bumps anyway. I also read the PKGBUILDs when installing new AUR packages.

I don't backup system files beyond normal pacman cache for reverts. I only backup personal files. When I get a new machine and do a fresh install, I might try Btrfs with snapshots on updates.

2 points

.zshrc

# Upgrade
alias y="yay"

# Search
alias ys="yay -Ss"

# Install
alias yi="yay -S"

# Remove
alias yr="yay -R"
2 points

I just run paru with NewsOnUpgrade enabled in the config. Auto checks news and updates everything.

I also keep LTS kernel as backup because I'm too lazy to set up keeping the previous kernel version installed when updating.

I newly have auto btrfs snapshots, but before that, I've never had a case where LTS kernel+some TTY isn't enough to get things working.

2 points

Paru these days and with not great internet, I use flexo with 8 arch boxes in the house

2 points

if i have time i just type: paru If im in a hurry: pacman -Syu is my friend.

2 points

I use pacnews to check for anything I need to know about from Arch news. I use pacman -Syu if everything looks good. I also have timeshift and timeshift-autosnap installed. To make automatic back ups every time I update. For AUR packages, I manage them manually download them to a .aur folder in my home folder. I run arch-log to check for updates for my AUR packages.

1 points

Both Arch news and the Arch BugTracker are in my newsboat feeds, and I check my newsfeeds way more than I pacman -Syu so I'm pretty covered there. For Aur packages ( I only have a few) Paru is configured to show me any Arch news before it will update.

Touch wood nothing bad has happened so far, and actually because I have the bug-tracker in my newsfeeds I've been able to answer questions on this sub with that info.

1 points

I just run yay whenever I happen to think about it. Reinstall and regenerate grub on grub updates and that's it.

1 points

I wrote a script with these commands:

flatpak uninstall --unused -y flatpak update -y yay -Sy archlinux-keyring --noconfirm

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.