LinuxCommandLibrary

checkupdates

safely check for Arch Linux package updates

TLDR

Synchronize database and list pending updates

$ checkupdates
copy
List pending updates without syncing the database
$ checkupdates -n
copy
Display updates only if different from last check
$ checkupdates -c
copy
List updates and download packages to cache
$ checkupdates -d
copy
Use a specific pacman database
$ CHECKUPDATES_DB=[path/to/directory] checkupdates
copy

SYNOPSIS

checkupdates [options]

DESCRIPTION

checkupdates safely checks for pending updates in Arch Linux without requiring root privileges. It creates a temporary copy of the sync database to check for updates, avoiding any modifications to the system.
Part of the pacman-contrib package, it provides a safe way to check updates that can be used in scripts and status bars.

PARAMETERS

-n, --nosync

Don't synchronize the database, use cached data
-c, --change
Only display if updates differ from last check
-d, --download
Download packages to pacman cache while checking
-h, --help
Display help message

ENVIRONMENT

CHECKUPDATES_DB

Path to use for the temporary database

CAVEATS

Arch Linux specific. Requires network access for database synchronization unless using --nosync. The temporary database is stored in a user-writable location.

SEE ALSO

pacman(8), paru(1), yay(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community