auto-update(1)
NAME
auto-update - choose and run this computer's update policy
SYNOPSIS
auto-update [command]
auto-update status [--json]
auto-update policies [--json]
auto-update show policy [--json]
auto-update set policy [--from policy] [--param key=value]...
auto-update apply
auto-update finish
auto-update tick [--json]
auto-update gui | auto-update tui
DESCRIPTION
auto-update decides when pkg(8) checks for, downloads and applies updates, tells the person at the computer what is about to happen and what just happened, and lets them choose that behaviour from a closed set of policies. It never installs anything itself: every change to the system is pkg upgrade.
Updates are applied only on a running system. Nothing is applied while the computer starts or shuts down. When an applied update needs it, the user is logged out or the computer restarts, after a countdown; a running computer is never powered off.
Four policies ship: aggressive applies updates daily, normal (the default) on Tuesdays and Fridays, manual never unasked, and custom when you set. When an applied update needs a log out or a restart, you have a grace period to do it yourself: 4, 7 or 14 days, or what you set in custom. The grace period starts 24 hours after you were notified, and when it has run out the log out or restart is done for you, in the policy's restart window.
With no command, auto-update opens the window when a display is reachable, the text front end on a terminal, and otherwise prints the status.
COMMANDS
status- What is pending, how important, since when, what applying it will require, the policy in force, the next check and apply, and when an owed log out or restart will be done. Unprivileged.
policies- The policies on this machine. The one in force is marked
*. showpolicy- One policy and the parameters it lets you change, with their current values and bounds.
setpolicy [--frompolicy] [--paramkey=value]...- Make policy the one in force. A parameter not named keeps its current value when the policy is not changing, and its default otherwise; with
--from, it takes the other policy's value for the same key instead, as the window's Customize button does (set custom --from aggressive). Only parameters the policy declares are accepted, within their bounds. A grace period over 14 days is accepted with a warning. Run as a user, this re-runs itself through pkexec(1) and asks for an administrator's password. apply- Check and apply now: check for updates at once, apply what is pending whatever the schedule, and then log out or restart if the update needs it, after a 10-minute countdown. With nothing to apply and a log out or restart owed, count down to that.
finish- Log out or restart now, when an applied update is owed one.
tick- One run of the timer. Root only;
auto-update.timerruns it hourly. gui,tui- The window, or the full-screen text front end.
FILES
- /usr/share/auto-update/policies/<id>.toml
- Vendor policies. See auto-update-policy(5).
- /etc/auto-update/policies/<id>.toml
- Administrator policies. One with a vendor policy's id replaces it.
- /etc/auto-update/auto-update.toml
- The policy in force and the parameter values that differ from its defaults. Written only by
set. Absent means the default policy at its defaults. - /var/lib/auto-update/status.json
- What the front ends show, rewritten by every tick.
- /var/lib/auto-update/state.json
- The scheduler's memory. Root only.
- /run/motd.d/auto-update
- The current notice, for a console login.
EXIT STATUS
0 on success, 1 on failure, 2 on a usage error.
SEE ALSO
auto-update-policy(5), pkg(8), pkexec(1), systemd.timer(5)