Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make Debian package install dependencies?

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.

like image 509
Nuno Santos Avatar asked Dec 12 '11 15:12

Nuno Santos


People also ask

Can dpkg install dependencies?

dpkg checks dependencies and will refuse to install a package whose dependencies aren't met, but it won't help you find and install those dependencies. You need a higher-level tool (e.g. aptitude, apt-get or dselect) for that.

How do I check deb package dependencies?

Check the dependencies of a DEB file using dpkg In this case, you can use the dpkg command with -I or –info option. The dependencies can be seen in the line starting with Depends.


1 Answers

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.

like image 163
Thomas Leonard Avatar answered Sep 24 '22 20:09

Thomas Leonard