One way of installing packages in Ubuntu 24.04 is by installing their .DEB file. The .DEB extension is used with Debian software packages, and there are different approaches you can take to install the .DEB files on Ubuntu 24.04.
This post gives five methods to install deb files on Ubuntu 24.04. Some methods are based on the command line, while others involve installing the deb file graphically.
5 Methods to Install deb File on Ubuntu 24.04
Ubuntu is a Debian-based Linux distribution. As such, it allows installing packages as deb files, and there is no specific installation method to follow. Which method to use depends on your preference but if you are new to installing deb files, below are the various approaches you can take.
We are installing the Google Chrome deb file stored in our downloads folder for this case.
You must first download the deb file and then proceed with the installation methods.
Method 1: Via dpkg
One of the most convenient ways of installing deb files on Ubuntu 24.04 is by using the dpkg command. The command acts as a package manager that allows you to install and manage deb packages.
To use the dpkg package manager, run the below syntax and add the path to the target deb file.
$ sudo dpkg -i [package_path];
In our case, we have it in our current directory.
The installation process will initiate and the deb file will get installed. You can now locate and start using the installed package from your applications.
Method 2: Via APT
The apt package manager mainly installs packages by sourcing them from the Ubuntu repository. However, you can also utilize it to install deb files in Ubuntu 24.04.
Like using the dpkg command, APT requires you to specify the path to the target deb file. Otherwise, it will try sourcing it from the Ubuntu repository.
$ sudo apt install [package_path];
Even though we have the deb file in our current directory, we must specify so when running the command. Once you enter your password, APT will install the deb file and the package will be available in your applications.
Method 3: Via GDebi Command Line
Third on our list is GDebi. It is a command-line and GUI-based package manager that allows installing local deb packages. However, the tool isn’t installed by default on Ubuntu 24.04.
Therefore, start by installing it using the below command.
$ sudo apt install gdebi -y
Once it installs, you can use it via GUI or command-line. For this method, we are working with the command-line version. Run the below syntax to install your target deb file.
$ sudo gdebi [package_path]
Press ‘y’ and hit the enter key to install the deb file.
Once the process is completed, your package will be available from your applications. That’s how you can quickly use GDebi to install a deb file via the command line.
Method 4: Via GDebi GUI
If you are uncomfortable using the command line, you can install deb files on Ubuntu 24.04 via GUI. One approach is to use the GDebi GUI version.
Start by opening up your files and navigating to the target deb file.
Next, right-click on the deb file and select the option to ‘Open with.’
Select the GDebi Package Installer from the list and click the Open button at the top.
Once the installer loads, click on the Install Package option.
Authorize the installation by entering your password.
That’s it. The installation process will begin and once it completes, you will have your application available on Ubuntu 24.04 and ready for use.
Method 5: Via App Center
The last approach you can use to install deb files on Ubuntu 24.04 is the App Center. The procedure is similar to what we had in the previous method.
Start by locating where the deb file is saved in your Ubuntu 24.04
Next, right-click on the image and select the Open with > App Center option.
Install the package once it loads, and ensure you enter your password when prompted to.
That’s it. You can now open the installed application and enjoy using it.
Conclusion
For Debian-based Linux distributions, you often encounter cases where you want to install deb files for given applications. The good news is that you have numerous options to install the deb files, and this post has shared the five approaches you can use. With that, you now understand what it takes to install deb files on Ubuntu 24.04.
More...
Categories
Collapse
Article Tags
Collapse
There are no tags yet.
Latest Articles
Collapse
-
by KasimbaArch Linux hasn't had a license for any package sources (such as PKGBUILD files) in the past, which is potentially problematic. Providing a license will preempt that uncertainty.
In RFC 40 we agreed to change all package sources to be licensed under the very liberal 0BSD license. This change will not limit what you can do with package sources. Check out the RFC for more on the rationale and prior discussion.
Before we make this change, we will provide contributors with...-
Channel: Articles
11-19-2024, 09:21 AM -
-
by Kasimba
by George Whittaker
Introduction
In the world of cybersecurity and software development, binary analysis holds a unique place. It is the art of examining compiled programs to understand their functionality, identify vulnerabilities, or debug issues—without access to the original source code. For Linux, which dominates servers, embedded systems, and even personal computing, the skill of binary analysis is...-
Channel: Articles
11-18-2024, 07:10 PM -
-
by KasimbaDebian and Ubuntu are two popular Linux distributions. In this deep dive we will guide you on the key differences between them from perspective of both corporate enterprise and personal productivity or pleasure usage. After reading this blog post you should be in a better position to decide to select Ubuntu or Debian.
Stewardship, Licensing, Community and Cost
Where as Debian is 100% fully committed to free software as defined by the Debian Free Software Guidelines, Ubuntu is created...-
Channel: Articles
11-17-2024, 08:30 PM -
-
by Kasimba
by George Whittaker
Introduction
In the digital age, data loss is a critical concern, and effective backup and recovery systems are vital for any Debian system administrator or user. Debian, known for its stability and suitability in enterprise, server, and personal computing environments, offers a multitude of tools for creating robust backup and recovery solutions. This guide will explore these solutions,...-
Channel: Articles
11-13-2024, 05:30 PM -
-
by Kasimba
by George Whittaker
Introduction
Debian is one of the most trusted and stable Linux distributions, making it a top choice among developers and system administrators. Setting up a powerful development environment on Debian involves installing the right tools, compilers, libraries, and Integrated Development Environments (IDEs) that can support various programming languages and workflows. This guide provides...-
Channel: Articles
11-07-2024, 11:22 PM -
-
by Kasimba
by George Whittaker
In today’s digital world, data is more than just information; it’s a part of our lives. From photos and documents to sensitive personal information, our data represents our memories, work, and interests. While cloud storage services are widely available, they often come with privacy concerns, subscription fees, and limitations on customization. This is where building a personal cloud on Ubuntu comes...-
Channel: Articles
11-07-2024, 04:30 PM -