Skip to content
Simple Update

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.

Terminal
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.

A finished run in terminal mode: a box with the updates found, then a checklist of the steps with what each did, and the disk space freed

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:

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:

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.

Unattended runs#

--yes runs without prompts and accepts every default:

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:

Terminal
simple-update --yes --no-reboot
case $? in
    0|3) ;;                                # done, or nothing to do
    4) echo "restart needed" | mail -s "$(hostname)" root ;;
    *) exit 1 ;;
esac

All 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