three Methods to Set up Deb Information on Ubuntu Linux


Get real time updates directly on you device, subscribe now.

This newbie article explains set up deb packages in Ubuntu. It additionally reveals you take away these deb packages afterwards.

That is one other article within the Ubuntu newbie sequence. In case you are completely new to Ubuntu, you would possibly surprise about set up purposes.

The best means is to make use of the Ubuntu Software program Heart. Seek for an software by its identify and set up it from there.

Life could be too easy in the event you might discover all of the purposes within the Software program Heart. However that doesn’t occur, sadly.

Some software program can be found through DEB packages. These are archived recordsdata that finish with .deb extension.

You’ll be able to consider .deb recordsdata because the .exe recordsdata in Home windows. You double click on on the .exe file and it begins the set up process in Home windows. DEB packages are just about the identical.

You will discover these DEB packages from the obtain part of the software program supplier’s web site. For instance, if you wish to set up Google Chrome on Ubuntu, you’ll be able to obtain the DEB bundle of Chrome from its web site.

Now the query arises, how do you put in deb recordsdata? There are a number of methods of putting in DEB packages in Ubuntu. I’ll present them to you one after the other on this tutorial.

Install deb files in UbuntuInstall deb files in Ubuntu

Putting in .deb recordsdata in Ubuntu and Debian-based Linux Distributions

You’ll be able to select a GUI software or a command line software for putting in a deb bundle. The selection is yours.

Let’s go on and see set up deb recordsdata.

Methodology 1: Use the default Software program Heart

The best methodology is to make use of the default software program middle in Ubuntu. You need to do nothing particular right here. Merely go to the folder the place you may have downloaded the .deb file (it must be the Downloads folder) and double click on on this file.

Google Chrome deb file on UbuntuGoogle Chrome deb file on UbuntuDouble click on on the downloaded .deb file to begin set up

It’s going to open the software program middle and it is best to see the choice to put in the software program. All it’s a must to do is to hit the set up button and enter your login password.

Install Google Chrome in Ubuntu Software CenterInstall Google Chrome in Ubuntu Software CenterThe set up of deb file will probably be carried out through Software program Heart

See, it’s even easy than putting in from a .exe recordsdata on Home windows, isn’t it?

Methodology 2: Use Gdebi software for putting in deb packages with dependencies

Once more, life could be quite a bit less complicated if issues at all times go clean. However that’s not life as we all know it.

Instructed learn  Flip Off Bluetooth By Default In Ubuntu 14.04 [Quick Tip]

Now that you already know that .deb recordsdata could be simply put in through Software program Heart, let me let you know in regards to the dependency error that you could be encounter with some packages.

What occurs is program could also be depending on one other piece of software program (libraries). When the developer is getting ready the DEB bundle for you, he/she could assume that your system already has that piece of software program in your system.

But when that’s not the case and your system doesn’t have these required items of software program, you’ll encounter the notorious ‘dependency error’.

The Software program Heart can’t deal with such errors by itself so it’s a must to use one other software known as gdebi.

gdebi is a light-weight GUI software that has the only goal of putting in deb packages.

It identifies the dependencies and tries to put in these dependencies together with putting in the .deb recordsdata.

Personally, I want gdebi over software program middle for putting in deb recordsdata. It’s a light-weight software so the set up appears faster. You’ll be able to learn intimately about utilizing gDebi and making it the default for putting in DEB packages.

You’ll be able to set up gdebi from the software program middle or utilizing the command under:

sudo apt set up gdebi

Methodology three: Set up .deb recordsdata in command line utilizing dpkg

If you wish to set up deb packages in command lime, you should utilize both apt command or dpkg command. Apt command truly makes use of dpkg command beneath it however apt is extra well-liked and simple to make use of.

If you wish to use the apt command for deb recordsdata, use it like this:

sudo apt set up path_to_deb_file

If you wish to use dpkg command for putting in deb packages, right here’s do it:

sudo dpkg -i path_to_deb_file

In each instructions, it is best to exchange the path_to_deb_file with the trail and identify of the deb file you may have downloaded.

Install deb files using dpkg command in UbuntuInstall deb files using dpkg command in UbuntuPutting in deb recordsdata utilizing dpkg command in Ubuntu

When you get a dependency error whereas putting in the deb packages, it’s possible you’ll use the next command to repair the dependency points:

sudo apt set up -f

Find out how to take away deb packages

Eradicating a deb bundle is just not an enormous deal as effectively. And no, you don’t want the unique deb file that you just had used for putting in this system.

Instructed learn  [How To] Open, Run, Set up Or Execute A JAR File In Ubuntu Linux

Methodology 1: Take away deb packages utilizing apt instructions

All you want is the identify of this system that you’ve put in after which you should utilize apt or dpkg to take away that program.

sudo apt take away program_name

Now the query comes, how do you discover the precise program identify that it is advisable to use within the take away command? The apt command has an answer for that as effectively.

You will discover the record of all put in recordsdata with apt command however manually going by way of this will probably be a ache. So you should utilize the grep command to seek for your bundle.

For instance, I put in AppGrid software within the earlier part but when I wish to know the precise program identify, I can use one thing like this:

sudo apt record –installed | grep grid

This may give me all of the packages which have grid of their identify and from there, I can get the precise program identify.

apt record –installed | grep grid
WARNING: apt doesn’t have a secure CLI interface. Use with warning in scripts.
appgrid/now zero.298 all [installed,local]

As you’ll be able to see, a program known as appgrid has been put in. Now you should utilize this program identify with the apt take away command.

Methodology 2: Take away deb packages utilizing dpkg instructions

You should utilize dpkg to seek out the put in program’s identify:

dpkg -l | grep grid

The output will give all of the packages put in that has grid in its identify.

dpkg -l | grep grid
ii appgrid zero.298 all Uncover and set up apps for Ubuntu

ii within the above command output means bundle has been appropriately put in.

Now that you’ve this system identify, you should utilize dpkg command to take away it:

dpkg -r program_name

Tip: Updating deb packages
Some deb packages (like Chrome) present updates by way of system updates however for many different packages, you’ll should take away the present program and set up the newer model.

I hope this newbie information helped you to put in deb packages on Ubuntu. I added the take away half so that you just’ll have higher management over the packages you put in.

Source link

Leave A Reply

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More