Linux dpkg command details common dpkg usage dpkg-I install a Debian package file, such as the file you manually download. The content listed in dpkg-c. Dpkg-I extracts package information from the package. Dpkg-r removes an installed package. Dpkg-L lists all installed files. Check the content of A. deb file by checking dpkg-c. Dpkg-P completely clears an installed package. Unlike remove, remove only deletes data and executable files, and purge also deletes all preparation files. Dpkg-s displays the information of the installed package. At the same time, see apt-cache to display the package information in the Debian archive and dpkg-I to display the package information extracted from a. deb file. Dpkg-reconfigure re-prepares an installed package if it uses debconf (debconf provides a unified configuration interface for package installation ). You can reconfigure debconf itself, for example, you want to change the priority of its front-end or question. For example, re-configure debconf and use a dialog front-end to run the following command: dpkg-reconfigure-frontend = dikg debconf (if you have chosen an error during installation, here we can change it back to the following: echo "hold" | the status of dpkg-set-selections is hlevels (command line) the current status obtained by dpkg-get-selections "" (in command line mode) supports wildcards, such as Debian :~ # Dpkg-get-selections * wine * libwine hold libwine-alsa hold libwine-arts hold libwine-dev hold libwine-nas hold libwine-print hold libwine-twain hold wine + hold wine-doc hold wine-utils hold