
So, let’s see how we can take a single DEB package and install it properly on Ubuntu.

It is a command-line utility for managing (installing, updating, removing) DEB packages on Debian and related Debian-based Linux distributions such as Ubuntu, Linux Mint, etc.Īdditionally, if you want to learn more in-depth about the APT command and master your command-line skills, our thorough guide will come in handy.ĪPT is typically used to download and install software from remote repositories, but it can also be used to install DEB packages from local sources. The first approach is to use the APT command. Now, let’s get to work and show you how to install a DEB file in Ubuntu.

Of course, you can fix this with some tricks, such as “ sudo apt install -fix-broken,” which attempt to correct a system with broken dependencies in place, but that’s not the way I’d propose as a best practice. In other words, dpkg will not install package dependencies, often resulting in installation failures. Then, when the download is complete, APT invokes dpkg to install all dependencies.Īt the same time, there are no dependency checks when using the dpkg command directly. But APT first generates a list of all dependencies before downloading it from the repository. When you use APT to install a package, dpkg is used under the hood. However, I do not recommend this approach instead, please use the apt command. The following examples will use the Google Chrome installation DEB file “ google-chrome-stable_current_b.” Install DEB File by Using apt Commandīefore we get started, I’d like to clarify the following: many guides recommend installing a DEB file with the dpkg command. Each DEB file contains two TAR archives: the installer control information and installable data. You can easily view DEB’s file contents by opening it as a standard archive file with your preferred archive/extract application. In addition, DEB files’ TAR archives are commonly compressed using bzip or gzip compression. They contain all the necessary files and instructions for installing a specific software app. The DEB file is based on the archiving format, containing two TAR archives – installer control information and installable data. They contain precompiled software ready to be installed on Debian or a Debian-based operating system. The DEB files are an installable software package format used by Debian and its derivatives, such as Ubuntu, Linux Mint, etc.

deb extension.īut first, let’s answer the question, what exactly is a DEB file? What is a DEB File? Instead, you may have to visit a website to download and install a file with a. Sometimes, however, you won’t find every app you want in one of those. There are official repos, PPAs, Snap store, Flathub, etc. Here I’ll show you the two most straightforward ones via the command line or а GUI app, closely following best practices.įor Ubuntu users, the software can come from many sources. There are several ways to install deb files in Ubuntu.
