unattended-upgrade(8)
π unattended-upgrade(8) π
System Manager's Manual π
β¨ NAME β¨
okay so unattended-upgrade is the tool for automatic installation of security (and other) upgrades π₯ no babysitting required bestie
π SYNOPSIS π
unattended-upgrade [options]
π¦ DESCRIPTION π¦
okay so this program can download and install security upgrades automatically and unattended π«Ά it's giving responsible. It only installs packages from the configured APT source (no sketchy strangers π) and it checks for dpkg prompts about configuration file changes so it doesn't just freeze on you π
All operations get logged to /var/log/unattended-upgrades/unattended-upgrades.log π and the package manager (dpkg) output gets logged to /var/log/unattended-upgrades/unattended-upgrades-dpkg.log β¨ receipts, bestie.
This script is the backend for the APT::Periodic::Unattended-Upgrade option π It's designed to be run periodically by APT's systemd service (apt-daily-upgrade.service) or from cron (e.g. via /etc/cron.daily/apt) πΈ main character energy, running on schedule.
π OPTIONS π
unattended-upgrade accepts the following options, obsessed with all of them tbh:
-h,--helpβ help output, the OG cheat sheet π-d,--debugβ extra debug output into/var/log/unattended-upgrades/unattended-upgrades.logπ for when you need the tea β--apt-debugβ detailed APT/LibAPT output for debugging π§ the deep dive-v,--verboseβ show verbose output π£οΈ chatty mode activated--dry-runβ just simulate installing updates, do not actually do it π it's a rehearsal, not the show--minimal-upgrade-stepsβ perform upgrade in minimal steps (cancel with SIGINT) π this is the default now, so you're already slaying. Cancel with SIGINT if you need to bail--no-minimal-upgrade-stepsβ do not perform upgrade in minimal steps π« opting out of the minimal vibe
π§ CONFIGURATION π§
The configuration is done via the apt configuration mechanism π The default configuration file lives at /etc/apt/apt.conf.d/50unattended-upgrades β¨ go check it out, it's iconic.
π AUTHORS π
unattended-upgrade is written by Michael Vogt <mvo@ubuntu.com> π«Ά legend behavior.
This manual page was originally written by Michael Vogt <mvo@ubuntu.com> π the OG writer, no cap.
π₯ COPYRIGHT π₯
Copyright (C) 2005-2009 Canonical π
There is NO warranty. You may redistribute this software under the terms of the GNU General Public License. For more information about these matters, see the files named COPYING π read the fine print, it matters, bestie.
Dated March 1, 2019, for unattended-upgrade(8), signed with love ππ¦π
π¦ where this page comes from
- debian bookworm: unattended-upgrades 2.9.1+nmu3 Β· GPL-2.0-or-later
- debian trixie: unattended-upgrades 2.12 Β· GPL-2.0-or-later
- ubuntu jammy: unattended-upgrades 2.8ubuntu1 Β· GPL-2.0-or-later
- ubuntu noble: unattended-upgrades 2.9.1+nmu4ubuntu1 Β· GPL-2.0-or-later
- ubuntu questing: unattended-upgrades 2.12ubuntu4 Β· GPL-2.0-or-later
- ubuntu resolute: unattended-upgrades 2.12ubuntu9 Β· GPL-2.0-or-later
- ubuntu stonking: unattended-upgrades 2.12ubuntu9 Β· GPL-2.0-or-later
- π girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms