1. apt

https://www.debian.org/doc/manuals/debian-handbook/sect.apt-get.en.html

1.1. Usage

Tip

Use apt-get instead of apt in scripts for it has stable interfaces.

List installed packages:

$ sudo apt list --installed

Show info about a package:

$ sudo apt show libopenmpi-dev

Show installed files of a package:

$ dpkg-query -L libopenmpi-dev

List files in a deb package:

$ dpkg-deb -c slurm-smd_24.11.5-1_amd64.deb

Show info of a deb package:

$ dpkg-deb -f slurm-smd-client_24.11.5-1_amd64.deb

Find the package which contains a file:

$ dpkg -S $(which file)