How to install deb packages

This tutorial is for those who use Ubuntu, Debian or a derivative of Debian Linux and have downloaded a .deb package that they want to install. Typically you can use synaptic, apt-get or aptitude. However, if the package is not available via the repositories you may need to download and install them yourself.

How to manually install .deb packages

Note: This process only installs the downloaded .deb package. If the package has dependencies, you may need to install them as well.

1. Press ctrl+alt+t to open a terminal window.
2. Download your chosen .deb package via wget or another method.
3. To install a deb package using dpkg. From the terminal type the following,
(replacing packagename with the name of the package).

sudo dpkg -i packagename.deb

Troubleshooting .deb dependencies

If you receive an error similar to the following;

packagename depends on otherprogram (>= 1:0.0.0); however: Package otherprogram is not installed

You'll most likely need to install the otherprogram(s) before you can continue to install your .deb package.
You can install those dependencies by typing the following,
(replacing otherprogram with the actual program name)

sudo apt-get install otherprogram

Alternately, you might be able to use

sudo apt install -f

How to manually uninstall .deb packages

To uninstall or remove a program using dpkg, simply type the following,
(again replacing packagename with the actual package name).

dpkg -r packagename

How to find installed .deb packages using dpkg

To find or view installed .deb packages using dpkg, simply type the following
(replacing name with a word that should be in the packagename).

dpkg -l | name

How to install deb packages published under Using and Configuring Linux