How to Install Deb Packages or .deb files using Debian Linux or Ubuntu. Are you using Ubuntu or Debian and have downloaded a .deb package that you want to install? Typically you can Install Debian packages that are available in the repositories by using synaptic, apt-get or aptitude. However, if the package or file is not available via repositories you will need to download and then manually install them, yourself.
How to Install deb packages
Note: This process only installs the downloaded .deb package. If the package has dependencies, you will need to install them as well. See the following section if you want to install a deb file with dependencies.
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 or file).
sudo dpkg -i packagename.deb
Install Debian packages with dependencies
Here is how to Install Deb Files if you receive an error similar to the following, that a package or program is not installed;
packagename depends on otherprogram (>= 1:0.0.0); however: Package otherprogram is not installed
In this case, you will need to install the otherprogram(s) before you can continue to install your .deb package.
Easily install package dependencies by typing the following,
(replacing otherprogram with the actual program name)
sudo apt-get install otherprogram
Alternately, you might be able to use -f to force.
sudo apt install -f
Manually uninstall .deb packages using dpkg
To uninstall or remove a program using dpkg, simply type the following,
(again replacing packagename with the actual package name).
dpkg -r packagename
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