apt*/dpkg

Debian package management related commands, apt, apt-file, apt-cache

Do a full upgrade

apt update --allow-releaseinfo-change
apt full-upgrade

Install apt-file to search for files

Install apt-file

apt install -y apt-file && apt-file update

Search for a specific file

apt-file search /bin/glxgears

Output:

user@machine:~$ apt-file search /bin/glxgears
mesa-utils: /usr/bin/glxgears             
mesa-utils-bin: /usr/bin/glxgears.x86_64-linux-gnu

Show package information

apt-cache show 'java*'

Show package status and repository

apt-cache policy 'java*'