dpkg

Updated: April 28, 2024

Debian Package is used to install, build, manage and remove .deb files.


Table of Contents

tldr

# check weather a package is installed
dpkg -l <package>

# show location where package is installed
dpkg -S <package>

# purges (complete uninstall) of google earth
sudo dpkg -P google-earth-pro-stable

# configure all unpacked and unconfigured
sudo dpkg --configure -a

ARGUMENTS

dpkg
  -i, --install       	                # installs a package
  -l, --list                            # lists installed packages
  --get-selections                      # list all programs installed on system
  -r, --remove        	                # uninstalls package and leaves conf files
      -a, --pending   	                # is given instead of name, all unpacked or removed are purged
  -C, --audit         	                # perform database sanity and consistency checks. (partial installs or
  						                          # that have missing, wrong or obsolete control data or files)
  -G, --refuse-downgrade                # do not install a package if there is a newer version
  -P, --purge         	                # purge and installed or already removed package
  -S, --search                          # show location where package is installed
  --configure         	                # configure a package that is unpacked but not configured
      -a, --pending   	                # all unpacked and unconfigured are configured
  -V, --verify        	                #	checks integrity with dpkg database