How to install deb files in Linux/ Ubuntu/ Mint/ PopOS with its Internal Explanation

Gaurav Bhardwaj
Gaurav Bhardwaj
Modified on
#linux
Cover Image for How to install deb files in Linux/ Ubuntu/ Mint/ PopOS with its Internal Explanation

If you are using Linux especially Debian-based distributions like Ubuntu, Linux Mint, Pop! Os etc. then the most used file format is.deb. Especially most of the software packages for Debian-based distributions are present in the .deb files. In this article, we will learn how to install deb files in linux via the command line.

Internals of .Deb files

install deb files in Linux  - Ittwist

Debian packages are standard Unix archives that consist of two tar archives – control.tar.xz & data.tar.xz and one Debian-binary file debian-binary. One archive holds the control information – control.tar.xz and another contains the data – data.tar.xz that is used for installation.

  1. debian-binary – It is having a single line that represents the package format version number
  2. control archive – A tar archive named control.tar.xz contains the package metadata like the package name, maintainer, etc.
  3. data archive – A tar archive named data.tar.xz contains the actual installable files.

Now we will learn how to install deb package in Linux.

Install .deb files in Linux.

You can install the deb file in Linux by simply executing the below command from the command line. dpkg provides the basic framework for installing and manipulating Debian packages.

sudo dpkg -i <package_name.deb>

Example:

sudo dpkg -i google_chrome.deb
install deb files in Linux - Ittwist

In this example, we are installing the google chrome from the .deb file on Linux.

install deb files in Linux - Ittwist

If you get any issues while executing this command, then probably the dependencies that are required, are not installed on your Linux distro, then you further need to execute this command.

sudo apt install -f

With this command it will install all the required packages, thereby install the software applications on your Linux System.

install deb files in Linux - Ittwist

If you need to remove any package then you need to execute the below command

sudo apt-get remove google-chrome-stable
sudo apt autoremove
install deb files in Linux - Ittwist

That’s it for this article, If you have some queries please comment below. If you are for a stable distro for your PC you can check out some of our picks in this article.

Tagslinux


0 Comments

Leave a Comment

Note : Your Email ID will not be published. Enter all the Required Fields *