Login

How to Install .deb Files in Ubuntu (Four Easy Methods)

In Ubuntu and other Debian-based Linux distributions, .deb files remain one of the most common ways to install software. Whether you are working on Ubuntu 22.04 or any other Debian-based environment, knowing how to install .deb packages helps in managing applications efficiently.


This guide explains what .deb files are and demonstrates four different methods to install them using both the terminal and graphical interface.

What Is a .deb File?

A .deb file is a packaged software file used in:

  • Ubuntu
  • Linux Mint
  • Debian
  • Kali Linux
  • Other Debian-based operating systems

A .deb package contains:

  • Control archive – includes metadata such as version, dependencies, and maintainer scripts
  • Data archive – contains the actual program files
  • Debian-binary – defines the package format version

These files make software installation seamless across Debian-based systems.

Prerequisites

Before installing .deb files, ensure that:

  • You are using Ubuntu 22.04 (or any Debian-based distro)
  • You have an account with administrative (sudo) privileges

How to View a .deb File

To check the contents of a .deb package:

  1. Right-click the .deb file
  2. Select Open With Archive Manager
  3. Browse through the data and control files

This is helpful for understanding package structure and dependencies.

Four Methods to Install .deb Files in Ubuntu

Below are four simple ways to install .deb packages.
(Example used: Opera browser .deb file stored in the Downloads folder.)

Method 1: Install .deb File Using APT

The APT package manager is the easiest and most recommended method, as it automatically handles dependencies.

Open a terminal and run:

sudo apt install ./opera-stable_105.0.4970.16_amd64.deb

APT resolves missing packages and ensures a clean installation.

Method 2: Install .deb File Using dpkg

dpkg is a low-level package management tool available by default in Ubuntu.

Install the .deb file:

sudo dpkg -i opera-stable_105.0.4970.16_amd64.deb

If you encounter dependency errors, fix them with:

sudo apt –fix-broken install

This command repairs missing or broken dependencies.

Method 3: Install .deb File Using gdebi GUI

gdebi is a graphical installer that automatically resolves dependencies and is ideal for users who prefer the GUI approach.

Step 1: Install gdebi

sudo apt install gdebi

Step 2: Launch the Application

Search for gdebi-gtk or run:

gdebi-gtk

Step 3: Open the .deb File

  • Click File > Open
  • Navigate to your Downloads folder
  • Select the .deb file

Step 4: Install the Package

Click Install Package and wait for the installation to finish.

Method 4: Install .deb File Using gdebi Command

If you prefer the terminal, gdebi can install .deb files directly:

sudo gdebi opera-stable_105.0.4970.16_amd64.deb

This method is faster and handles dependencies more efficiently than dpkg.

Summary

Installing .deb files in Ubuntu is simple and flexible. Whether you prefer the terminal or a graphical interface, the four methods listed above give you complete control over package management. Using APT or gdebi ensures proper dependency resolution, making the process smooth and secure.

For users managing Linux VPS servers or Linux dedicated hosting environments at host.co.in, understanding these methods is especially helpful when installing custom applications or server utilities.

If you need assistance with Linux hosting or server management, our support team is available 24/7.

Pooja Patil

How to Install .deb Files in Ubuntu (Four Easy Methods)
Table of Contents
    ×