I want to schedule my machine to run all my updates unattended at night, but this requires my authentication (which pretty much axes the unattended part). Would it be best to use a cron job or is there something better?

1 Answer
1

Check out cron-apt. It can do exactly that. I use cron-apt to download packages and send email that tells what can be updated.

If you are running anything critical (not your own desktop computer, that is), automatically installing updates is risky.

Something breaks (for example some software removes some configuration parameter you were using, and it's not starting anymore; that's why something important was down for several hours / you were paged in the middle of night).

Your server do not boot after it upgraded something. You reboot it several days later, and you have no idea what went wrong (of course, you can fix this by sending out those update report emails).

If you perform attended update (meaning you are sitting somewhere during your computer actually installs new packages), you can fix problems immediately, not in the morning, when everything has been broken for several hours already. Or alternatively, you'll wake up when your excellent monitoring system alarms that important things are not working.

In more than 5 years i never received an update which I didn't install - to what information would I refuse that? So why not let it automatically happen? I guess the risk is very low.
–
user unknownMar 1 '11 at 15:47

@user unknown: in more than 5 years I have received multiple updates that broke something, and required manual intervention. Including mysql, apache2, and LDAP libraries. With Ubuntu LTS and with Debian, for example. Also, few times there have been dependency which removed important package(s). Therefore, I would claim running unattended updates during night is risky.
–
OlliMar 1 '11 at 16:24

If those updates broke something - how did you knew it before? Why were they rolled out, while it was public, that they will brake something? Or did it actually break, and why is it better to break at daylight attended, instead of nightly?
–
user unknownMar 1 '11 at 16:38