My question is simple -- I want to know more about dpkg -- what does it do?
As has been said,
However, what has not been explained is the anatomy of an update using
The scripts read by
We are now getting to the heart of what
The status of each package is listed in
Or to do a configuring of all unconfigured packages if there has been a problem with an update and some packages' configuration is still pending:
For a great tutorial that focuses on
As always, the
dpkg is a package manager for Debian-based systems. It can install, remove, and build packages, but unlike other package management systems it can not automatically download and install packages and their dependencies.
So basically it's apt-get without dependency resolving, and it's used to install .deb files.
I warn you though: Uninstalling packages using dpkg, in most cases, is NOT recommended. It is better to use a package manager that handles dependencies, to ensure that the system is in a consistent state.
For example using
dpkg is a command line way to install from a .deb or remove already installed packages. For example if you had a .deb file in your home directory, running