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

How do I install a .deb file via the command line?

How do I install a .deb file via the command line?
by

2 Answers

akshay1995
While dpkg -i indeed installs the package, it doesn't do any automatic dependency resolution, meanwhile there are two other alternatives, using gdebi, or the apt-get tool. To use the later just use:

sudo apt-get install /path/to/package.deb

Even if you are on the directory with the package you need to give a path using ./ at the start:

sudo apt-get install ./package.deb
sandhya6gczb
While dpkg -i indeed install the package, it doesn't do any automatic dependency resolution, meanwhile, there are two other alternatives, using gdebi, or the apt-get tool. To use the later just use:

sudo apt-get install /path/to/package.deb

Even if you are on the directory with the package you need to give a path using ./ at the start:

sudo apt-get install ./package.deb

Login / Signup to Answer the Question.