On 28/10/2024 22:33, Michael Kjörling wrote:
$ sudo grep -rvh '^#' /etc/apt/sources.list* | grep -v '^$'
$ apt policygives apt point of view, including pinning, and so it is more reliable. I admit it is more verbose.
My impression is that variant of command with no package (to get overview) is less known than
$ apt policy python3 to get available versions of a specific package.