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?
About this post
- Posted
- Archived
- Score
- 60 Β· 88% up
- Kind
- Text
- ID
- 155ybpg
140 comments
I simply do
pacman -Syuand no issues in years.I use paru so paru -Syu for years without issues
Just type paru its the same
I stopped using Paru because the development became rather shit. I wouldn't use it if I were you.
This, and the same for yay. All the rest of my maintenance is just to clean up the cache and free up some space
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
Spot on . This is the answer.
You aur packages can go out of date causing unwanted depencies and the inability to update ur os thus you are wrong
Good ππ»
It can occasionally. You just need to check the news for anything that requires manual intervention.
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.
If it breaks just go back to your last backup and find out what went wrong
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.
checkupdatesfrompacman-contrib)pacman.confand I update them manually when I'm ready to rebootinformantto automatically check Arch News in case manual intervention is neededrebuild-detectorThat'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.
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.
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
to
and it seems to work with Alacritty. The right command depends on the terminal you want to use.
This is a good, sane middle ground
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
I just risk doing it the risky way and read nothing.
"Save myself 20 seconds now and hate myself later" squad β
I donβt know what I would look at anyway even if I did look at all the boring update info.
I just do
yayand relax. In the case that something does go wrong I either downgrade a specific package or rollback with snapshots. Easy.What does your snapshots workflow look like?
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.
Why cache and then install separately?
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.
Yay!
yay -Syu --devel
yay -Y --devel --savejust once and then onlyyayfrom that moment onwardsWhat's the flag do
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.
I have one big alias that:
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
I am on the mailing list where notifications about manual intervention are sent. If none are needed, I just use
pacman -Syuto 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.
I type
paruin a terminal as soon as I am logged inI just
yay -Syuonce 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.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 to 2 hours of googling? just subscribe to the email list or rss the feed, way simpler
I download the new iso every month and just do a clean install like God intended
Amen brother, gotta do the install without the installation guide π€
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.
.zshrcI just run
paruwithNewsOnUpgradeenabled 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.
Paru these days and with not great internet, I use flexo with 8 arch boxes in the house
if i have time i just type:
paruIf im in a hurry:pacman -Syuis my friend.yay
But since I'm using the Chaotic AUR, I update with sudo pacman -Sy && sudo powerpill -Su && yay -Su
I use chaotic too powerpill is shit don't use it.
Why not? It worked well for me.
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.
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.
I just run yay whenever I happen to think about it. Reinstall and regenerate grub on grub updates and that's it.
aur sync -u && sudo pacman -Syu
I wrote a script with these commands:
flatpak uninstall --unused -y flatpak update -y yay -Sy archlinux-keyring --noconfirm
YAY