List packages that would be affected (does not install any packages)

pacman --upgrade

pacman --upgrade --print {{path/to/package.pkg.tar.zst}}

click the source code to copy install pacman --upgrade on any operating system with command-not-found.com