4 ways to install DEB files

Table of contents:

4 ways to install DEB files
4 ways to install DEB files
Anonim

Files with the.DEB extension are archives intended to install programs and their dependencies on Debian distributions and their derivatives like Mint or Ubuntu. You can install them very easily with the package managers of these distributions like apt or dpgk or gdebi.

Steps

Method 1 of 4: Use the Ubuntu package manager

Install DEB Files Step 1

Step 1. Double click on the file

DEB. If you are used to using the Ubuntu GUI, this method will show you how to install software packages in the easiest way.

If you are having difficulty with software dependencies when installing software using this method, try using the methods on the GDebi installer or Dpkg installer

Install DEB Files Step 2

Step 2. Click the Install button

You will see an authentication window appear.

Install DEB Files Step 3

Step 3. Enter your password

Then click on the Authenticate button. The installation process will begin. When this is complete, you will see a confirmation message.

Method 2 of 4: Use the GDebi package installer

Install DEB Files Step 4

Step 1. Install Gdebi if you haven't already

Gdebi is the most robust Debian package installation utility due to its ability to manage dependencies. If you are using the Linux Mint distribution, this utility is already installed as the system default package manager. If you are using one of the Ubuntu or Debian distributions, you will need to install it separately or use another method. Proceed as follows to install Gdebi:

  • simultaneously press the Ctrl + Alt + T keys on your keyboard to open a terminal;
  • type sudo apt-get update and press Enter or Return on your keyboard;
  • enter your password when prompted;
  • type sudo apt install gdebi-core and press Enter or Return on your keyboard.
Install DEB Files Step 5

Step 2. Open a terminal window

Skip this step if you are already signed in to a command line account. In most window managers, you will be able to simultaneously press Ctrl + Alt + T on your keyboard to open a terminal.

  • If you are using Linux Mint, you can now proceed to install your.DEB package by double-clicking it in the system file manager and selecting Install the package.
  • If you want to use the Gdebi GUI with one of the Ubuntu or Debian distributions, open your file manager, right click on the.DEB package to install and select Open with another app. Choose Gdebi when prompted and click Install the package to complete the installation.
Install DEB Files Step 6

Step 3. Navigate to the folder where the file is located

DEB. You will use the cd command for this. If you saved your Debian package in the / home / user / Downloads folder, type cd / home / user / Downloads and press Enter or Return on your keyboard.

Install DEB Files Step 7

Step 4. Type sudo gdebi filename.deb

Then press the Enter or Return key on your keyboard, not forgetting to replace filename.deb with the actual name of the package to install. This will have the effect of installing the.DEB package as well as all the dependencies related to it.

Method 3 of 4: Use Dpkg from the command line

Install DEB Files Step 8

Step 1. Open a terminal window

Skip this step if you are already signed in to a command line account. In most window managers, you will be able to simultaneously press Ctrl + Alt + T on your keyboard to open a terminal.

Install DEB Files Step 9

Step 2. Navigate to the folder where the file is located

DEB. If you saved your Debian package in the / home / user / Downloads folder, type cd / home / user / Downloads and press Enter or Return on your keyboard.

Install DEB Files Step 10

Step 3. Type sudo dpkg –i filename.deb

Then press the Enter or Return key on your keyboard, not forgetting to replace filename.deb with the actual name of the package to install. This will have the effect of installing the.DEB package as well as all the dependencies related to it.

If this is your first time using a command preceded by sudo in a terminal, be aware that in order to complete it you will need to enter your password when prompted

Install DEB Files Step 11

Step 4. Resolve any package dependency errors

If the given command gives you one or more dependency errors, you will need to run the sudo apt-get install -f command instead to force the installer to fix the dependency issues of the program to be installed. This frequently occurs with relatively old programs that were built with older or replaced development libraries.

Method 4 of 4: Use Apt

Install DEB Files Step 12

Step 1. Open a terminal window

Skip this step if you are already signed in to a command line account. In most window managers, you will be able to simultaneously press Ctrl + Alt + T on your keyboard to open a terminal.

The Apt command is normally used to download and install programs from the software repositories of a distribution. By respecting a particular syntax, you can also use Apt to install.DEB packages which have already been downloaded to your hard disk

Install DEB Files Step 13

Step 2. Navigate to the folder where the file is located

DEB. If you saved your Debian package in the / home / user / Downloads folder, type cd / home / user / Downloads and press Enter or Return on your keyboard.

Install DEB Files Step 14

Step 3. Start the install command

Type sudo apt install./ filename.deb and press Enter or Return on your keyboard. The software will begin to install.

  • Be sure to replace filename.deb with the actual name of the package. Note the./ placed before the name. It means for Linux to get the package from the current directory. If you omit it, Apt will look for the package on a remote software repository, at best the one in your distribution.
  • If this is your first time using a command preceded by sudo in a terminal, be aware that in order to complete it you will need to enter your password when prompted.

Popular by topic