Terminal mode
Terminal mode runs the same update as the window, as step-by-step prompts.
It is used for simple-update --cli, and for simple-update without a
display, for example over SSH. It asks for your password through sudo.
simple-update --cli # step-by-step prompts simple-update --yes --no-reboot # unattended, never reboots simple-update --check # list available updates, no root needed simple-update --history # recent runs and failure logs simple-update --clean-up # clear caches, asking about each simple-update --config-files # review .pacnew and .dpkg-dist files simple-update --firmware # install firmware updates, asking about each
Every option is listed in the command line reference.
A run, step by step#
Terminal mode first checks for updates without root, as the start page does, and says how many are waiting before asking to go on. Each step then ends as one row of a checklist: whether it ran, was skipped or failed, what it did and how long it took.

While a step is at hand, its list of packages, its question and a spinner with the last lines of its output appear under the rows. On a terminal they are erased once the step's row is written, unless the terminal was resized meanwhile: it may have re-wrapped them, so they are left in place rather than risk erasing rows above them.
Packages are listed in tables:
- upgrades with their versions, sizes and repositories;
- held-back changes with whether each package is installed, upgraded or removed;
- unused packages with the versions installed;
- Flatpak and Snap updates with their versions, sizes and remotes or publishers.
Columns the check found nothing for are left out, and on a narrow terminal
the last ones go first. Lists too long for the terminal are cut short;
simple-update --check lists every update.
After the steps, Done gives the disk space freed and left, followed by what still needs you: a restart, services still running replaced code and configuration files to merge. If a command fails, the run stops and its row gives the error, the path to the full log and the output it ended with.
Answering questions#
On a terminal, a question is answered a key at a time:
- y or n answers it at once.
- The arrow keys, Tab and Space move between Yes and No, and Enter takes the one lit up, which starts as the default.
- Keys pressed before a question is shown are ignored, so they can't answer it unseen.
- Closed input, or Ctrl+D, declines the action.
When the question is too long for Yes and No beside it, they go on the line under it. Piped input is read a line at a time.
When sudo no longer remembers your password at the end of a long update, it asks before checking services again; see Checking services.
How it looks#
On a terminal, the header is a panel with the count of updates in it, the running step's output is in a box whose border gives the time taken and how many steps are done, and Done shows the system disk's use as a meter.
- Colours follow
COLORTERMandTERM: truecolor, 256 colours or the basic eight.NO_COLORturns them off. - Without UTF-8, the marks, lines and meters are ASCII.
- Piped or redirected, the checklist is plain ASCII text and nothing is erased, so a log keeps every list, answer and the last output lines of each step.
Unattended runs#
--yes runs without prompts and 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 with --yes; they are only listed.
Add --no-reboot to never reboot: when a restart is required, it exits with
status 4 instead, so a script can decide when to restart. For example, in a
nightly job:
simple-update --yes --no-reboot
case $? in
0|3) ;; # done, or nothing to do
4) echo "restart needed" | mail -s "$(hostname)" root ;;
*) exit 1 ;;
esacAll exit codes are listed under Exit status. To check for updates without installing them, see Scripts and monitoring.
View this page's source · Documentation for Simple Update 1.3.2