banner



How To Install Deb Tar Gz

This beginner article explains how to install deb packages on Ubuntu. Information technology also shows yous how to remove those deb packages afterwards.

This is another article in our Ubuntu beginner series. If yous're completely new to Ubuntu, you might be wondering about how to install applications.

The easiest fashion is to utilise the Ubuntu Software Center. Search for an application by name and install it from there.

Life would be too simple if you could find all the applications in the Software Center. That'due south not the case, unfortunately.

Some software is available via 'deb' packages. These are archived files that end with the .deb extension.

You can remember of .deb files as like .exe files in Windows. You double click on the .exe file and it starts the installation procedure in Windows. Deb packages are pretty much the same.

Y'all tin can detect these deb packages in the download section of a software provider's website. For example, if you lot want to install Google Chrome on Ubuntu, you can download the Chrome deb package from its website.

Now the question arises, how do you install deb files? There are multiple ways of installing deb packages on Ubuntu. I'll bear witness them to you ane by ane in this tutorial.

Install deb files in Ubuntu

Installing .deb files on Ubuntu and Debian-based Linux Distributions

You can choose a GUI tool or a command line tool for installing a deb packet. The option is yours.

Let's go on and encounter how to install deb files.

Method ane: Use the default Software Middle

The simplest method is to use the default software center in Ubuntu. In that location's nothing special to practice here. Merely go to the folder where you downloaded the .deb file (unremarkably the Downloads binder) and double click on the file.

Google Chrome deb file on Ubuntu
Double click on the downloaded .deb file to first installation

It will open up the software center, where you should see the choice to install the software. All you lot have to do is to hitting the install button and enter your login password.

Install Google Chrome in Ubuntu Software Center
The installation of the deb file will be carried out via the Software Center

See, it's even more unproblematic than installing from a .exe file on Windows, isn't it?

Troubleshoot: Double clicking deb file doesn't open in software center in Ubuntu 20.04

Double clicking the deb file in Ubuntu 20.04 opens the file in archive managing director instead of software centre.

This is weird but can easily exist fixed. All you have to do is to right click on the deb file and become for Open up With selection. In here, cull open up with Software Install as the default pick.

Deb File Install Fix Ubuntu
Deb File Install Set up Ubuntu

Method two: Use Gdebi application for installing deb packages with dependencies

Once more, life would exist a lot simpler if things always went smoothly. But that's not life as we know it.

At present that you lot know .deb files tin be easily installed via the Software Center, allow me tell you about the dependency error that y'all may encounter with some packages.

What happens is that a program may be dependent on another piece of software (such every bit libraries). When the developer is preparing the deb package for you lot, he/she may assume that your system already has that piece of software.

Only if that's non the example and your organisation doesn't accept those required pieces of software, y'all'll run across the infamous 'dependency fault'.

The Software Center cannot handle such errors on its own and then you have to use another tool called gdebi.

gdebi is a lightweight GUI application with the sole purpose of installing deb packages.

Information technology identifies the dependencies and tries to install these along with the .deb files.

gdebi handling dependency while installing deb package
Image Credit: Xmodulo

Personally, I prefer gdebi over the software center for installing deb files. It is a lightweight application and so the installation seems quicker. You lot can read in item nearly using gDebi and making information technology the default for installing DEB packages.

You tin can install gdebi deb package installer from the software centre or using the command below:

sudo apt install gdebi

Method 3: Install .deb files in command line

If you want to install deb packages in the control lime, you can use either the apt command or the dpkg command. The apt command really uses the dpkg command underneath it, only apt is more popular and easier to use.

If you desire to apply the apt control for deb files, use information technology like this:

sudo apt install path_to_deb_file

If you want to use the dpkg command for installing deb packages, here's how to practise it:

sudo dpkg -i path_to_deb_file

In both commands, you should replace path_to_deb_file with the path and name of the deb file you've downloaded.

Install deb files using dpkg command in Ubuntu
Installing deb files using dpkg control on Ubuntu

If you become a dependency error while installing the deb packages, you tin use the following command to fix information technology:

sudo apt install -f

How to remove deb packages

Removing a deb package isn't a large deal either. And no, you don't demand the original deb file that y'all used to install the program.

Method ane: Remove deb packages using apt control

All you need is the proper noun of the plan that you've installed and and then yous can use apt or dpkg to remove that program.

sudo apt remove program_name

Now the question comes, how do you find the exact program proper name that you lot need to use in the remove command? The apt command has a solution for that as well.

You lot tin find the list of all installed files with the apt command, just manually going through this will be a pain. So you can apply the grep command to search for your package.

For example, I installed the AppGrid application in the previous section but if I want to find out the exact program proper noun, I tin use something similar this:

sudo apt list --installed | grep grid

This will give me all the packages that accept grid in their name, and from in that location I can get the verbal program name.

apt list --installed | grep grid
WARNING: apt does non have a stable CLI interface. Use with circumspection in scripts.
appgrid/now 0.298 all [installed,local]

As you can meet, a plan chosen appgrid is installed. Now you tin use this program proper noun with the apt remove control.

Method 2: Remove deb packages using dpkg command

Y'all tin can use dpkg to discover the installed program's name:

dpkg -fifty | grep grid

The output will give all the packages installed that have filigree in their names.

dpkg -l | grep grid
ii appgrid 0.298 all Discover and install apps for Ubuntu

2 in the above control output means that the package has been correctly installed.

Now that you have the programme name, y'all can use the dpkg command to remove it:

dpkg -r program_name

Tip: Updating deb packages
Some deb packages (like Chrome) provide updates through system updates, but for virtually other software you'll accept to remove the existing programme and install the newer version.

I hope this beginner'due south guide helped y'all install deb packages on Ubuntu. I added the remove part so you can take better command over the programs you installed.


Source: https://itsfoss.com/install-deb-files-ubuntu/

Posted by: whitneynoeve1936.blogspot.com

0 Response to "How To Install Deb Tar Gz"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel