Although the landscape of software distribution is always changing, .deb files are still essential for software deployment in Linux environments such as Ubuntu and Debian. This complete article will walk you through the installation process of Ubuntu 22.04 deb files in four distinct ways. Additionally, we shall investigate what deb files are and why they are important for program management.
What is a .deb File?
Ubuntu, Linux Mint, Kali Linux, and other Debian-based Linux distributions use packages in the .deb file type. This file includes all of the installation-related components, including software files, metadata, and scripts, to make the procedure easier.
Prerequisites:
Before proceeding with this article, ensure you have:
- A system account with administrative privileges
- Ubuntu 22.04 installed
Follow the four methods to install .deb files in Ubuntu
In this article, we will cover all four different ways to install .deb files, including terminal-based and Graphical User Interface (GUI) approaches. We will use the Opera browser’s .deb package, which is normally located in the Downloads folder, to install it for demonstration purposes.
How to Open a .deb File?
A .deb file is essentially an archive containing:
- Control archive – Maintainer scripts and package metadata (name, version, dependencies, etc.)
- Data archive – The actual installation files.
- Debian-binary – The package format version number.
To view the contents of a .deb file:
- Right-click the .deb file.
- Select Open With Archive Manager.
Now, let’s explore the installation methods.
Method 1: Install .deb file using APT
APT is the simplest way to install a .deb package. Open the terminal, navigate to the Downloads folder, and run:
sudo apt install ./opera-stable_105.0.4970.16_amd64.deb
This command automatically resolves and installs dependencies.
Method 2: Install .deb File Using dpkg
The dpkg tool provides low-level package management and is pre-installed on Ubuntu. Use the following command:
sudo dpkg -i opera-stable_105.0.4970.16_amd64.deb
If there are dependency issues, fix them using:
sudo apt --fix-broken install
Method 3: Install .deb File Using gdebi GUI
gdebi simplifies the installation by handling dependencies.
- Install gdebi:
sudo apt install gdebi - Launch gdebi-gtk
gdebi-gtk - Open the .deb File:
- Click File > Open.
- Browse to the Downloads folder.
- Select the .deb file.
- Install the Package
Once loaded, click Install Package and wait for the process to complete.
Method 4: Install .deb File Using gdebi Command
If gdebi is installed, you can install the .deb file directly via terminal:
sudo gdebi opera-stable_105.0.4970.16_amd64.deb
This method ensures that dependencies are resolved efficiently.
In this way, we outlined four different methods to install .deb files in Ubuntu using both terminal and GUI-based approaches. With modern package managers, dependency handling is more streamlined, ensuring a smoother installation process. For further insights, visit the official Debian wiki or bodHOST for reliable Linux hosting solutions.
Explore further on How to Install Python 3 on Ubuntu 20.04 or 22.04