How to Install a DEB File in Linux

Configurare noua (How To)

Situatie

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.

What Is a DEB File ?

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.

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.

Solutie

How to Install DEB Files

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.

Install DEB Files Graphically

Download the DEB package of the app you want to install. Let’s install Slack for this tutorial.

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.

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.

Type the following command and hit enter.

sudo apt install gdebi

Once installation is complete, head over to the location of the DEB package that you downloaded.

f 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.

The GDebi package installer will now open and retrieve the details of the package you want to install.

Finally, click on the “Install Package” button and give it some time to install.

You should now see the application in the applications list.

Install DEB Files in the Terminal

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.

Type the dpkg command followed by the package name and hit Enter. Here’s an example.

sudo dpkg -i "package_name.deb"


Tip solutie

Permanent

Voteaza

(4 din 7 persoane apreciaza acest articol)

Despre Autor

Leave A Comment?