Although there may be many ways of managing installed packages on most Debian machines DPKG might be the right tool for you.
The DPKG package management tool has many uses including installing, removing, updating, or just finding packages on your system.
This should help give you an understanding of how to use DPKG as well as many of the options and actions available.
$ dpkg --option package
This is the standard usage for the DKPG command.
$ dpkg -s package | grep Status
Use this to find out if a package is installed or not.
$ dpkg -s package
See if a package is installed, as well as other useful information.
$ dpkg -S /file
With this option you can find out which package a file belongs to.
$ dpkg -S package$ dpkg -c package.deb
This will list all files related to the package.
$ dpkg -C
This will search for broken packages.
$ dpkg -L package
You can use this to list the locations of files added by the chosen package.
$ dpkg -l
Get a list of installed packages and a short description.
$ dpkg -l package
Will list specified package with a short description.
$ dpkg -i package.deb
Use this to install a package or upgrade already installed packages.
$ dpkg -r package
This will remove an installed package.
$ dpkg -R /directory
With this you can install all packages recursively from the specified directory.
$ dpkg -P package
You can remove an installed package but leave the configuration files with the purge option.
$ dpkg -p package
You can use this to get further details about a package.
$ dpkg -h
Get additional help with DPKG.
Additional DPKG Information
DPKG is not exactly the easiest tool for installing applications from the command line, but thankfully there are many options available.
The DSELECT tool can be used for package management as well as marking packages for removal or installation.
DPKG-DEB can also be used in much the same way. New users commonly find APT-GET or Aptitude easier to learn, but don’t be intimidated.
There are many more options and actions available for the DPKG package management tool, to see more use this command.
$ man dpkg