如何使 Debian 软件包安装依赖项? [英] How to make Debian package install dependencies?
问题描述
我想制作一个简单的 Debian 包来安装一个依赖 Qt4 库的简单工具.
在控制文件中,我已经定义它依赖于 Qt4 库,但是当我测试包时,它说无法满足依赖关系.
问题:
如何让 Debian 触发 apt 来安装依赖项?
找不到文档,但我知道 apt-get 可以做到这一点.
如果您想避免创建本地 APT 存储库,您可以这样做:
dpkg -i mypackage.debapt-get install --fix-missing
如果您确实想创建一个本地存储库,您可以为此使用 reprepro.>
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.
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.
这篇关于如何使 Debian 软件包安装依赖项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!