The dpkg command
package manager for Debian 10 examples from the lessons of the IVski Linux Playground — try them in the terminal next to them.
Options in the examples
-i, --install package-file...- Install the package. If --recursive or -R option is specified, package-file must refer to a directory instead.
-P, --purge package...|-a|--pending- Purge an installed or already removed package.
-r, --remove package...|-a|--pending- Remove an installed package.
Examples
dpkg -l | grep nginx
dpkg -S /usr/bin/curl
dpkg -L curl
sudo dpkg -i package.deb
dpkg -l
dpkg -l | grep python
dpkg -s curl
dpkg -S /usr/bin/ls
sudo dpkg -r package-nameRemove
sudo dpkg -P package-namePurge (remove + configs)