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

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

问题描述

我想制作一个简单的Debian软件包,以安装一个依赖于Qt4库的简单工具.

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

在控制文件中,我已定义它依赖于Qt4库,但是,当我测试该软件包时,它说无法满足依赖关系.

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.

问题:

如何使Debian触发器也易于安装依赖项?

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

找不到文档,但是我知道apt-get可以做到.

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

推荐答案

如果要避免创建本地APT存储库,可以执行以下操作:

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

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

如果您确实想创建本地存储库,则可以为此使用 reprepro .

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

这篇关于如何使Debian软件包安装依赖项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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