Deb packages are used on debian-based distributions to install different software you might download from different sites such as Google Chrome, Keybase, Discord, etc. In this guide you’ll learn how to easily install deb packages.
The installation of .deb
packages in any debian-based distribution can be done in multiple different ways, the first way is through the package manager, such as the Ubuntu Software Center, from where we can install them from the official repositories. On the other hand, in Debian we can install them using gdebi-gtk
graphically or with Synaptic
, these last ones also work in other distributions, you only have to install them.
Another easy way is by using the terminal using the dpkg
or apt
commands (these must be executed with root
or sudo
privileges) as follows:
How to Install Deb Packages
dpkg
To install a deb package through the use of dpkg
we have to use the -i
(--install
) flag so that it install the package in question:
sudo dpkg -i package_name.deb
apt-install
Alternatively we can use sudo apt-install
to install the downloaded package, for example:
sudo apt-install package_name.deb
aptitude
Another alternative is to use the Aptitude tool:
aptitude install package_name
Summary
This quick guide you learned how to install deb packages through the different methods: dpkg
, apt-install
, and aptitude
.