Does anybody here run pacman -Syu on a cronjob?
When I look up how others have automated installing updates all I see is warning about how it could mess up your system.
Yet in the time I have used arch (since beginning of 2016), I haven't had a single problem that I had to fix after using pacman -Syu. (all my problems were either from aur packages or personal fuckups)
Does anybody here install their updated automatically and unattended on arch and did that ever cause any problems for you?
About this post
- Posted
- Archived
- Score
- 0 · 100% up
- Kind
- Text
- ID
- 6nir2d
13 comments
Many Arch updates require manual intervention or print out instructions. It is simply stupid. "It works for me" isn't a response to an obvious potential problem.
I'm sure you have an example on hand?
Well some of these require manual intervention: https://www.archlinux.org/news/
Automating updates is how you fuck up a system. Bros don't let bros automate their updates. Just don't do it.
I don't do that myself, I merely download, but not install, the updates. But I know people that fully automate -Syu, and they haven't had problems so far. If something requires manual intervention, pacman fails anyways, so it's rather safe. It still may cause potential issues. For example, if the kernel upgrades and you don't reboot, you won't be able to plug in any new devices and may spend a huge amount of time debugging that, where just a quick reboot is needed.
Is this ever going to be fixed by the devs? I've been holding my breath for a while now
It would make pacman much more complex, as it would have to keep two different versions installed, and remove one after reboot. So I think the answer is no.
I do on my raspberry pi. Archlinuxarm has a much better track record on not having manual interventions, and worst case scenario I just log in and fix it. Thing is, there hasn't been any need to do so in more than a year since I did timer thing.
If you apply a little logic to the updater script, like notifying you of .pacnew files, schedule a reboot late at night if dbus or systemd have old libraries (thanks to
longoverdue) and reload services it's basically flawless.For being supersafe you can just delay any upgrades if the frontpage of archlinux.org has news, automatically.
I do it on my server (I think it's with a systemd timer and not cron, but that shouldn't make a big difference).
I'll get an email when it fails. Hasn't happened yet, but the server also hasn't been running for that long.
yea, but on a very basic nspawn container (just needed something to run makepkg)
Just ifft trigger update when Donald tweets