Command line reference
Every command-line option, exit code and file, and the interfaces that stay
stable within a major version. The same options are described in
man simple-update.
Options#
Start Simple Update from the app menu, or run:
simple-update [--cli] [-y|--yes] [--no-reboot] [--notify] [--check [--json]] [--history] simple-update --clean-up [-y|--yes] simple-update --config-files simple-update --firmware [-y|--yes] [--no-reboot]
| Option | Description |
|---|---|
| (none) | Open the window. Without a display (for example over SSH), runs in the terminal instead |
--cli |
Run the step-by-step prompts in the terminal. See Terminal mode |
-y, --yes |
Terminal mode without prompts. Accepts every default: dist-upgrade no, removing unused packages and cleaning the cache as set in Preferences, everything else yes, including the reboot when one is required. Services are never restarted; they are only listed |
--no-reboot |
Terminal mode that never reboots. When a restart is required, it exits with status 4 instead, so a script can decide when to restart. Combine with --yes for unattended runs |
--notify |
Check without root and show a desktop notification if there are new updates. Used by the notification timer |
--check |
Check without root and list the available updates, one per line. See Scripts and monitoring |
--json |
With --check, print the findings as JSON instead |
--history |
List recent update runs, with the log of any failed step. See Update history |
--clean-up |
Clear caches in the terminal, asking about each one: the whole package cache, unused Flatpak runtimes, old Snap revisions and journal entries older than four weeks. With --yes, clears all of them. See Clean Up |
--config-files |
Show each configuration file updates left beside the one in use, with its changes, and ask which version to keep. Never combined with --yes: it doesn't change a file without asking. See Configuration files |
--firmware |
Install firmware updates from fwupd in the terminal, asking about each device; the default answer is no. With --yes, installs all of them and reboots when one needs it, unless --no-reboot. See Firmware updates |
--version |
Print the version |
The keyboard shortcuts of the window are listed under Menu and shortcuts.
Exit status#
An update in terminal mode, with --cli or --yes:
| Code | Meaning |
|---|---|
| 0 | Packages were installed, upgraded or removed (or a reboot was scheduled), and no restart is pending |
| 1 | A step or check failed, sudo failed, or the distribution isn't supported |
| 2 | Invalid command line |
| 3 | Nothing was installed, upgraded or removed: the system was already up to date, or every change was declined. Cleaning the package cache alone doesn't count as a change |
| 4 | The run finished, but a restart is required and wasn't scheduled (declined, or --no-reboot). Also returned when an earlier update left the restart pending |
| 5 | --check found an interrupted update requiring repair, even if other checks failed |
| 130 | Interrupted with Ctrl-C |
The other commands:
| Command | 0 | 1 | 3 | 4 |
|---|---|---|---|---|
--check |
Updates are available | A source could not be checked | No updates | |
--clean-up |
Cleared something | Clearing or measuring a cache failed | Nothing to clear, or every cache was declined | |
--config-files |
Changed a file | A change failed | Nothing to merge, or every file was skipped | |
--firmware |
Updated something | Checking or an update failed, or fwupd isn't installed | The firmware was up to date, or every update was declined | The updates need a restart, or the computer turned off and on, that wasn't scheduled |
--notify |
The check worked, whether or not it showed a notification | The check failed | ||
--history |
Always |
--check also exits with 5 when an interrupted update requires repair; see
Exit codes.
Files#
| Path | What it holds |
|---|---|
~/.config/simple-update/settings.json |
The preferences |
~/.config/systemd/user/simple-update-notify.timer.d/interval.conf |
A notification interval other than every 12 hours |
~/.local/state/simple-update/history.jsonl |
The update history |
~/.local/state/simple-update/logs/ |
The full logs of the newest 20 failed steps |
/usr/lib/simple-update/simple-update-helper |
The root helper |
/var/lib/simple-update/config-backups/ |
Configuration files replaced or removed while merging, readable only by root |
/var/lib/simple-update/running.json, run.lock |
The helper's record of the running update and its lock |
/etc/apt/apt.conf.d/20auto-upgrades |
Changed by the automatic security updates switch |
Stable interfaces#
From 1.0, the following won't change within a major version. Additions are possible; renaming or removing anything listed here is a breaking change.
- Command line: the options and exit codes under Options
and Exit status, and the
--checkoutput and--jsonformat under Scripts and monitoring. - Helper verbs:
/usr/lib/simple-update/simple-update-helperacceptsrefresh,upgrade,dist-upgrade,autoremove,clean,snap-refresh,reboot,services,restart-services UNIT...,repair,clean-all,snap-clean,journal-clean,config-use FILE...,config-remove FILE...,firmware-update DEVICE-ID..., and on Debian and Ubuntuauto-updates-onandauto-updates-off(on Linux Mint, onlyauto-updates-off). - polkit action:
dev.wolfcloud.simpleupdate.helper. Writing your own polkit rules against it is supported; see Updating without a password. - Names: the app ID
dev.wolfcloud.simpleupdate(desktop file, icon, D-Bus name), the systemd user unitssimple-update-notify.serviceandsimple-update-notify.timer, and the settings file~/.config/simple-update/settings.jsonwith its keys (show_output,flatpak,snap,autoremove,clean, all booleans). - History format: described below.
Not covered: the Python modules, the terminal output, the layout of the
logs/ directory, the notified state file, and the helper's run record
/var/lib/simple-update/running.json and lock /var/lib/simple-update/run.lock,
and the layout of /var/lib/simple-update/config-backups/.
History format#
~/.local/state/simple-update/history.jsonl holds one JSON object per line,
one per update, Clean Up or firmware run, oldest first:
| Field | Type | Meaning |
|---|---|---|
version |
integer | Record format, currently 1. Missing in records written by 0.2.0, which are otherwise the same as version 1 |
time |
string | When the run ended, ISO 8601 with the UTC offset |
completed |
list of strings | Titles of the steps that finished, in order |
failed |
string or null | Title of the step that failed |
error |
string or null | Why it failed |
log |
string or null | Path to the failed step's full log |
packages |
list of objects | Optional. The changes seen, each with source, name, old, new and task. A null old is an installation and a null new a removal. Flatpak names include the installation and ref, and versions the commit; Snap versions include the revision. Firmware has source "firmware", the device's name, and an empty old when fwupd doesn't know the version |
warnings |
list of strings | Optional. Why the package changes may be incomplete, such as an inventory that couldn't be read |
kind |
string | Optional. "clean-up" for a Clean Up run, "firmware" for a firmware run; missing for an update |
New fields may appear without a version change, so ignore fields you don't
know. version goes up only when an existing field is removed or changes
meaning. Skip records with a version you don't support. Step titles are
meant for display and may change.
View this page's source · Documentation for Simple Update 1.3.2