如何使 Debian 软件包安装依赖项? [英] How to make Debian package install dependencies?

查看:96
本文介绍了如何使 Debian 软件包安装依赖项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想制作一个简单的 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆