Deb packages are used to install various programs on Linux distros based on popular “Debian” that are not available in the official repositories. Here we learn two easy methods to install Deb files…
Just like we have .exe files on Windows to install different software distributed by Microsoft or third-party developers; in the same way “.Deb” packages are meant to run on Debian and its based systems such as Ubuntu, Linux Mint, MX Linux, and others.
However, installing .exe files is way easier on Windows than on Linux, we just need to double click them. But the same is not true for all Debian systems, nevertheless, the command terminal is always there.
Installing deb packages from the Software Center
Here we are using Ubuntu to show the following steps and may not be applicable for all Debian-based systems.
- The simplest method is to install Deb packages using GUI is via Software center installation.
- To do this, download the deb file for the application that you want to install.
- After that navigate to its download folder or where you have saved it.
- Just like Windows OS, double-click on the .Deb file and the software installation program will open automatically.
- Using Ubuntu as an example, this is called “Ubuntu software” – in other Debian-based Linux operating systems, alternative solutions open up.
- However, the process to install the Deb file will remain the same. Click“Install” and the installation will start.
Installing deb packages from the terminal
Well, the command terminal method to install Deb packages will apply for all Linux systems based on Debian. Therefore, if you prefer to use the terminal and not the graphical installation, this can of course also be done without any problems via the package manager apt.
Although we can use the DPKG tool, however, it is better to use APT over it because the package manager will detect the dependencies required by the package you are installing and automatically resolved and installed the same. This way of installation works on all Debian-based systems.
- Open a terminal either using the key combination [Ctrl] + [Alt] + [T] or click on the corresponding icon available in the Application launcher.
- In the terminal, enter the following command syntax:
sudo apt install ./deb-package-name
- After that press the Enter key.
- For example, here we have the package “
teamviewer_amd64.deb” under the “Downloads” directory.
- So if we want to install it. Then we simply switch to the Downloads directory by using cd ~/Downloads
- Now, we use the
sudo apt install ./teamviewer_amd64.deb.
- If asked, enter your password and confirm again with [Enter].
- The deb package with all its dependencies on other packages is now automatically installed by apt. The program is then available for immediate use.