checkupdates8
Safely print a list of pending updates
Usage
checkupdates [options]
Overview
checkupdates checks for pending updates using a separate pacman database located in TMPDIR if CHECKUPDATES_DB is not set and outputs a list of updates with the old and new version.
Options
-
-c, --change -
Check for new available updates only, prints the list of available updates only if it differs from the last time checkupdates was run with that option.
-
-d, --download -
Download any pending updates to the pacman cache.
-
-h, --help -
Display syntax and command-line options.
-
--nocolor -
Do not colorize output. Color must be enabled in pacman.conf for the listing to be colored to begin with.
-
-n, --nosync -
Do not sync the temporary database, works best when the temporary database is updated regularly through some other means such as a cronjob or systemd timer.
-
-V, --version -
Display version information.
Environment
CHECKUPDATES_DB
Override the default ${TMPDIR:-/tmp}/checkup-db-${UID} temporary database location.
CHECKUPDATES_CHANGE
state file location for the -c/--change option.
TMPDIR
Override the default /tmp temporary directory.
XDG_STATE_HOME
Override the default $HOME/.local/state state directory
Errors
On exit, checkupdates will return one of the following error codes.
0
Normal exit condition.
1
Unknown cause of failure.
2
No updates are available.