I'm looking for a command line tool that can install a package from a file and automatically resolve dependencies via download. Does such a thing exist?


2 Answers 2


You are probably looking for the tool gdebi

gdebi lets you install local deb packages resolving and installing its dependencies. apt does the same, but only for remote (http, ftp) located packages.

  • The description suggests that the dependencies also need to be local files, which is not what is being asked for. Commented Jul 26, 2012 at 7:58
  • @JohnGardeniers If that is how you read the description, then the description from the manpage sucks. It is able to pull required packages from defined repositories.
    – Zoredache
    Commented Jul 26, 2012 at 16:32
  • Yep, the description definitely sucks. Commented Jul 27, 2012 at 1:13

After playing with it a bunch I see what's going on now. You dpkg -i whatever.deb and it will load it on the machine in some broken capacity but not completely install it, then you run apt-get -f install and it will download and fix up the dependencies for you and then it will complete the install process of the deb package. Not pretty but it works, and I'm happy.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .