2025-09-14 18:48:49 -06:00
|
|
|
# updatectl
|
|
|
|
|
|
|
|
|
|
> System update utility.
|
|
|
|
|
> More information: <https://www.freedesktop.org/software/systemd/man/updatectl.html>.
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
- Check to see if the system has any available updates:
|
2025-09-14 18:48:49 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`updatectl check`
|
2025-09-14 18:48:49 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
- Update to the latest version:
|
2025-09-14 18:48:49 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`updatectl update`
|
|
|
|
|
|
|
|
|
|
- Show update targets:
|
|
|
|
|
|
|
|
|
|
`updatectl list`
|
2025-09-14 18:48:49 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
- Show data about a target and its versions:
|
2025-09-14 18:48:49 -06:00
|
|
|
|
|
|
|
|
`updatectl list {{target}}`
|
|
|
|
|
|
|
|
|
|
- Return local data about a target without fetching from the network:
|
|
|
|
|
|
|
|
|
|
`updatectl --offline list {{target}}`
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
- Apply an update to a target and then reboot the system:
|
2025-09-14 18:48:49 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`updatectl --reboot update {{target}}`
|
2025-09-14 18:48:49 -06:00
|
|
|
|
|
|
|
|
- Clean up old versions of a specified target:
|
|
|
|
|
|
|
|
|
|
`updatectl vacuum {{target}}`
|
|
|
|
|
|
|
|
|
|
- Display help:
|
|
|
|
|
|
|
|
|
|
`updatectl {{[-h|--help]}}`
|