在 chroot 中安装 deb

发布于 2024-09-19 09:39:21 字数 356 浏览 2 评论 0原文

我有(或很快就会有)一个 puppet 脚本,它通过 apt-get 安装许多包。我需要可以从 chroot 内部访问它们。有没有简单的方法来设置它?

我的第一个想法是从 chroot 内部运行 apt-get 但这看起来既混乱又是一个潜在的问题,因为我如何确定完成后我已经完全删除了 apt-get ?

顺便说一句:一旦我设置了监狱,我应该能够将其覆盖并移动它,对吗?


如果重要的话,我需要的东西包括 gcc-multilib g++-multilib libc6-i386libc6-dev-i386< /代码>

I have (or soon will have) a puppet script that installs a number of packages via apt-get. I need them to be accessible from inside a chroot. Is there an easy way to set that up?

My first thought is to run apt-get from inside the chroot but that seems both messy and to be a potential problem as how can I be sure I've completely removed apt-get when I'm done?

As a side note: once I get the jail set up, I should be able to tar it up and move it around right?


In case it matters, the things I need include gcc-multilib g++-multilib libc6-i386 and libc6-dev-i386

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文