post

Install a local .deb file and its dependencies

To install a local deb file and its dependencies use apt, not dpkg:

sudo apt install ./foo-1.2.3.deb

You’ll automatically get all of the dependencies installed with the package. (dpkg doesn’t understand dependencies or repos, apt does.)

The leading ./, or a full or relative path to the deb file, is required. The path is what tells apt that it’s a local file. You have to include the path to the deb file or this will not work.

Hope you find this useful.

One thought on “Install a local .deb file and its dependencies

  1. I was battling with dpkg skipping some debs and found this. Solved my problem and enabled me to finish my offline installer. Thanks. DXT2

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.