Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

How to install a deb file, by dpkg -i or by apt?

I have a deb package for installation.

Shall I install by dpkg -i my.deb, or by apt?

Will both handle the software dependency problem well?

If by apt, how can I install from the deb by apt?
by

2 Answers

rahul07
Install your foo.deb file with dpkg -i foo.deb. If there are some errors with unresolved dependencies, run apt-get install -f afterwards.
sandhya6gczb
Here's the best way to install a .deb file on Ubuntu on the command-line:

sudo gdebi skype.deb

If you don't have gdebi installed already, install it using sudo apt install gdebi-core.

Login / Signup to Answer the Question.