So you have finally installed Linux. When you downloaded your favorite app, you received a file with “.deb”. What now? Let’s now look at how to install apps on Linux using DEB files.
What is a DEB file anyway?
A file that ends with “.deb”, is a Debian Software Package. It’s used for installing 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. Distributions that are based on Fedora or Arch won’t be capable of installing it.
If you have been using Windows for a while, you may be inclined to view DEB files the same as EXE files . A file ending with “.exe” refers to a Windows executable file. It is used to install and execute Windows programs. It’s not the same thing as a DEB file. EXE files include pre-compiled source code. To install DEB files on Linux, you will need to use an application.
Think of pre-compiled codes as instant noodles. You just need to add hot water to the file, mix it well according the wizard instructions, and then you can start using the application. A DEB file is the ingredient you need to make a recipe. To make the final dish, you’ll need to combine everything and cook it. There are many apps available that can help you do this.
GDebi are two popular packages installers that can be 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. GDebi can be used to install DEB packages.
How To Install DEB Files
You can install DEB files via both the GUI (graphical desktop) or the Terminal. Both methods can be used to install DEB files. We will discuss both so you can decide which one is easiest.
Install DEB Files Graphically
Download the DEB package for the app that you wish to install. For this tutorial, let’s install Slack.
After downloading, double-clicking the file will open the contents in Ubuntu Software or any other software manager you use.
Once it has loaded, click 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 already have it, use the terminal to install GDebi.
Type this command and hit the enter key.
sudo apt install gdebi
Once installation is complete, go to the location where you downloaded the DEB package.
If you are using Ubuntu, right-click the app package and select “Open With Other Applications.” Or, double-click the file to find another option.
Find GDebi Package Installationer and then click on select.
Now, the GDebi package installer will open and retrieve details about the package you wish to install.
Click on the “Install Package” button to finish. Give it time to install.
You should now see the application under the applications section.
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 it works.
Open the terminal. Then cd into the directory where the downloaded DEB file resides. The file is located 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”
Replace package_name.deb with the name of your package (but keep the quote marks), then hit Enter, and the installation should begin. You will likely be asked for the administrator password.
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.
sudo apt install -f
If anything is installed on your PC that needs additional dependencies, apt will help you install them. You can then run your program as usual!
For more dWeb.News Science and Nature News https://dweb.news/category/dweb-news/section-e-earth-environment-news/
The post How to Install a DEB file in Linux appeared first on dWeb.News dWeb.News from Daniel Webster Publisher dWeb.News – dWeb Local Tech News and Business News