How to make Debian package install dependencies?

Nuno Santos picture Nuno Santos · Dec 12, 2011 · Viewed 56.1k times · Source

I want to make a simple Debian package to install a simple tool that depends on Qt4 libs.

In control file I have defined that it depends on Qt4 libs however, by the time I'm testing the package it says that the dependency could not be met.

Question:

How can I make Debian trigger apt to install the dependencies as well?

Can't find that the documentation however I know that apt-get does that.

Answer

Thomas Leonard picture Thomas Leonard · Sep 18, 2012

If you want to avoid creating a local APT repository, you can do:

dpkg -i mypackage.deb
apt-get install --fix-missing

If you do want to create a local repository, you can use reprepro for this.