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
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.
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.
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.
Press ‘y’ and hit the enter key to install the 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.
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.
One of the most critical gaps in traditional Large Language Models (LLMs) is that they…
Canonical is continuously hiring new talent. Being a remote- first company, Canonical’s new joiners receive…
What is patching automation? With increasing numbers of vulnerabilities, there is a growing risk of…
Wouldn’t it be wonderful to wake up one day with a desire to explore AI…
Ubuntu and Ubuntu Pro supports Microsoft’s Azure Cobalt 100 Virtual Machines (VMs), powered by their…
Welcome to the Ubuntu Weekly Newsletter, Issue 870 for the week of December 8 –…