Skip to content

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?

0 points13 comments
Open on Reddit
About this post
Posted
Archived
Score
0 · 100% up
Kind
Text
ID
6nir2d

Author

1
posts
0
comments
0
media
View profile

13 comments

Automating updates is how you fuck up a system. Bros don't let bros automate their updates. Just don't do it.

4 points

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.

3 points

if the kernel upgrades and you don't reboot, you won't be able to plug in any new devices

Is this ever going to be fixed by the devs? I've been holding my breath for a while now

2 points

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.

2 points

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.

1 points

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.

1 points

yea, but on a very basic nspawn container (just needed something to run makepkg)

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.