pacman-u
short form of pacman --upgrade, install or upgrade from local package files
TLDR
SYNOPSIS
pacman {-U | --upgrade} [options] file|url ...
DESCRIPTION
pacman -U (long form `--upgrade`) installs or upgrades a package from a local package file or URL, bypassing the configured repositories. This is how you install locally built packages (from `makepkg`/AUR helpers), downgrades from the cache, and packages downloaded by hand.Unlike `-S`, which resolves names against the sync databases, `-U` operates directly on a `.pkg.tar.zst` (or `.pkg.tar.xz`, `.pkg.tar.gz`) file. Dependencies are still resolved against the sync databases, so a full refresh via `pacman -Sy` first is often advisable.
COMMON OPTIONS
-d, --nodeps
Skip dependency version checks. Doubling (`-dd`) skips dependency checking entirely.--asdeps
Mark the installed package as a dependency (not explicitly requested).--asexplicit
Mark the installed package as explicitly installed.--needed
Skip install if the same version is already installed.--overwrite GLOB
Overwrite conflicting files matching GLOB (use with caution).--noconfirm
Do not ask for any confirmation.-v, --verbose
Verbose output.
CAVEATS
Requires root privileges (use `sudo`). The package must target the same architecture and be signed by a trusted key, or pass `--nosigcheck` (dangerous). Downgrading may break packages that depend on the newer version.
SEE ALSO
pacman(8), pacman-upgrade(8), pacman-key(8), makepkg(8)
