How to Install a DEB File in Linux

Join 425,000 subscribers and get a daily digest of news, geek trivia, and our feature articles.
By submitting your email, you agree to the Terms of Use and Privacy Policy.
Abubakar is a freelance writer for How-to Geek. Although he holds a degree in Computer Science, he chose a career in writing to help people with technology. He has two years of experience writing about consumer electronics, Android, Linux, Windows, and open-source software on websites like Fossbytes. Read more…
How to Install DEB Files In Ubuntu
So, you finally installed Linux and when downloading your favorite app you got a file with the “.deb” extension. Now what? In this article, let’s look at the two ways you can easily install apps using DEB files on Linux.
A file ending with “.deb” is called a Debian Software Package file, and it’s used to install apps on Linux. DEB files are used only in Debian-based Linux distributions like Ubuntu and its various flavors, Pop!_OS, Linux Mint, and others. That means distributions based on Arch or Fedora won’t be able to install it.
If you’re coming to Linux after using Windows for a long time, you might be tempted to think of DEB files as similar to EXE files. A file that ends with “.exe” is a Windows executable file used to install and run Windows programs. However, it’s not the same as a DEB file. EXE files come with pre-compiled source code, whereas you need an application to install DEB files, compile the file’s contents, and install it on Linux.
Think of pre-compiled code as instant cup noodles. All you need to do is pour hot water (double-click on the file), mix it well (follow the instructions in the installer wizard), and eat it (start using the application). On the other hand, think of a DEB file as the ingredients you need for a recipe. You’ll need to put and mix everything and cook them to get the final dish ready. Fortunately, you have free apps that will take care of the process for you.
GDebi and Eddy are some of the popular package installers that are used to install DEB files. However, distributions like Ubuntu open DEB packages in the software center by default, where you can click on install, and the app will be installed for you. You can also install GDebi to install DEB packages.
You can install DEB files using both the graphical desktop (GUI) and the Terminal. We’ll go through both methods so that you can choose the one that looks easy.
Download the DEB package of the app you want to install. Let’s install Slack for this tutorial.
download slack and save the .deb file
After downloading, double-clicking on the file will load the contents of the package in Ubuntu Software, or whatever software manager your distribution uses.
Once it loads up, all you need to do is click on the “Install” button.
install slack from Ubuntu software center
If for some reason the software manager doesn’t open, you can install a package using GDebi or the dpkg command.
If you don’t have it already, open the terminal to begin installing GDebi.
open the terminal to install gdebi
Type the following command and hit enter.
install gdebi using apt
Once installation is complete, head over to the location of the DEB package that you downloaded.
go to the DEB file location
If you’re using Ubuntu, right-click on the app package and click on “Open With Other Application.” Otherwise, look for another “Open With” option, or try double-clicking the file.
Find and click on GDebi Package Installer, and finally, click on select.
select GDebi package installer
The GDebi package installer will now open and retrieve the details of the package you want to install.
Install package button in GDebi
Finally, click on the “Install Package” button and give it some time to install.
GDebi installing Slack.deb
You should now see the application in the applications list.
slack in ubuntu applications
If you’re comfortable using the terminal, the dpkg (Debian Package) command can install DEB files for you. Here’s how to use it.
Open the terminal. Then cd into the directory where the downloaded DEB file resides. In our case, the file is in the Downloads directory.
go to the directory
Type the dpkg command followed by the package name and hit Enter. Here’s an example.
Replace package_name.deb with the name of your package (but keep the quote marks), then hit Enter, and the installation should begin. You’ll probably be asked to enter the administrator password.
install the app using dpkg
Alternatively, you can go to the file location using the default file manager, type sudo dpkg -i, drag and drop the file into the terminal, and hit Enter to install it.
Whichever method you use with dpkg, we recommend checking that any necessary dependencies are installed before running the app. dpkg doesn’t check to make sure your system has everything it needs to run the program, but apt can do it for you.
If anything is installed on your PC that needs additional dependencies, apt will help you install them. Then you’re free to run your program!
RELATED: 10 Basic Linux Commands for Beginners
JOIN GEEK TALK ON FACEBOOK
Facebook
Instagram
Twitter
LinkedIn
RSS Feed
The Best Free Tech Newsletter Anywhere
By submitting your email, you agree to the Terms of Use and Privacy Policy.

source

Digital Strategist Chris Hood

Leave a Reply

Your email address will not be published. Required fields are marked *

© 2022 SHAQ HAX - Proudly powered by theme Octo