Ubuntu Tutorials

Install DEB Package On Ubuntu 18.04 LTS

Install DEB package using gdebi

Install DEB package On Ubuntu 18.04 LTS

In this tutorial post, we are going to learn the method to install .deb package on Ubuntu and in it’s derivatives. This post is intended for the beginner level of users who might have just migrated to Linux ( Ubuntu) from Windows or OS X. Files with deb extensions are a Debian packages.

install a deb file, by dpkg -i or by apt

Install Deb Package Using Dpkg Command

Well, Let’s jump into the method to install .deb file in Ubuntu. Dpkg is a package manager for Debian. Ubuntu, Linux Mint and derivatives are based on Debian system.

To install a .deb file, run the following command with the -i flag.

$ sudo dpkg -i package-name.deb

For example.

$ sudo dpkg -i  openshot.deb

Sometime you might encounter the error like this:

dpkg: error processing package 

Don’t panic if you see such error. It’s a dependency errors. To resolve this error, run the following command:

$ sudo apt install -f

To remove the installed software, run the following command:

$ sudo dpkg -r package-name       [It Will Remove Package Only ]
$ sudo dpkg --purge package-name  [It Will Remove Package And Configuration Files]

Now, Let’s try another method to install deb file in Ubuntu/Mint/Derivatives.

Install Deb Package Using Apt Command

Run the following command to install any .deb file in Ubuntu. Meanwhile, The trick in this method is that you need to mentioned a local relative or absolute path of the file.

$ sudo apt install ./deb-package.deb
$ sudo apt-get install ./deb-package.deb

If you want to remove the installed using Apt command:

 sudo apt-get remove package-name
$ sudo apt-get purge package-name
$ sudo apt remove package-name
$ sudo apt purge package-name

At last,

READ THIS ALSO  How To Install GIMP Using Flatpak In Ubuntu 18.04

Install DEB Package using gdebi

gdebi is a command-line tool for installing local deb packages. It automatically download and install all the required prerequisite packages. Run the following command to install .deb file.

$ sudo gdebi deb-package.deb

To remove package using gdebi command:

$ sudo apt purge package-name
$ sudo apt-get purge package-name
$ sudo dpkg --purge package-name