apt-cache policy shows a package's local and remote (install candidate) version numbers: $ apt-cache policy coreutils
coreutils:
Installed: 9.1-1
Candidate: 9.1-1
Version table:
*** 9.1-1 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
100 /var/lib/dpkg/status