如何创建 debian 包以供离线安装?
在这里,我想要什么: 我想为我的项目开发debian包以供离线安装。 项目包含一些依赖项,如 python-lxml 等。我已经从具有互联网连接的不同机器下载了所需的包。现在在另一台机器(没有互联网连接)上,我想在执行控制文件之前将所有必需的包复制到“/var/cache/apt/archive”文件夹(来自 debian 包安装)中。因此,当执行控制文件时,它可以从“/var/cache/apt/archive”文件夹安装依赖包,而不是在互联网上搜索。
我应该应用哪些更改以及在哪个文件中?或者对于创建离线安装包还有其他建议吗?
谢谢!
Here, what I would like :
I want to develop debian package of my project for offline installation.
Project contains some dependency like python-lxml and etc. I have downloaded required packages from the different machine which have internet connectivity. now on another machine (which does not have internet connectivity), I would like to copy all required packages in "/var/cache/apt/archive" folder (from debian package installation) before the execution of control file. so when control file would be executed it could install dependent packages from the "/var/cache/apt/archive" folder instead of searching on internet.
What changes should I have to apply and In which file? or Is there any other suggestion for creating offline installation package?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
太棒了,就在几秒钟前,我向一位堆垛机同事推荐了 apt-offline:
Amazing, just a few seconds ago I recommended
apt-offline
to a fellow stacker: