如何使用一个 Ubuntu 盒子作为另一个盒子的软件包存储库?
我们的开发环境有 6 台 Ubuntu 机器,如果我们可以用其中一台下载最新版本的 Ubuntu,然后使用我们的本地 LAN 在其他计算机之间分发新软件包,那就太好了。这将为我们节省大量下载新软件包的时间(我们的连接速度非常慢)。
有人知道该怎么做吗?
哦,我简单地查看了个人存储库的 Ubuntu 文档,它似乎与我所描述的不完全一样,不过我可能读错了。
谢谢! 伯尼
Our dev environment has 6 Ubuntu machines, and it'd be nice if we could download the latest version of Ubuntu with one, and then use our local LAN to distribute the new packages between the other computers. This would save us loads of time in downloading the new packages (our connection is REALLY slow).
Anyone know how to do this?
Oh, and I've briefly looked at the Ubuntu documentation for personal repositories, and it doesn't appear to be exactly what I'm describing, I could have misread it though.
Thanks!
Bernie
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可能想看看 apt-proxy。基本上,您在其中一台机器上进行设置,然后指向其他机器的sources.list以通过该机器检索更新。
可以在这里找到一篇与 Debian 设置相关的文章(非常相似):http://blogs.koolwal.net/2008/04/16/setting-up-debian-proxy-cache-server-for-deb-packages/< /a>
You might want to take a look at apt-proxy. Basically you set that up on one of the machines, then point the other machines sources.list to retrieve updates via that machine.
An article related on setting it up for Debian (very similar) can be found here: http://blogs.koolwal.net/2008/04/16/setting-up-debian-proxy-cache-server-for-deb-packages/
我们在办公室使用 approx 有一段时间了。您需要进行的唯一真正修改是您需要将您的sources.list指向托管代理的框。
Approx 本身是一个缓存代理,因此您必须将您的盒子指向运行代理的计算机。第一次下载软件包将花费同样的时间,但该软件包的任何后续下载都会很快。
We used approx in our office for quite some time. The only real modification you have to make is that you need to point your sources.list at the box that hosts the proxy.
Approx itself is a caching proxy, so you have to point your boxes at the machine running the proxy. The first time you download packages will take just as long, but any subsequent downloads of that package will be fast.
这是针对 Redhat yum 的:
创建个人存储库
你绝对可以创建自己的存储库,但是由于维护起来很麻烦,我认为为每台机器从网上重新下载所有内容会更容易,至少如果数量是 6。对于 60 台我会投入精力。
This is for Redhat yum:
Create Personal repository
you can definitely create your own repository, but with all the trouble maintaining it, I think it is easier to download everything again from the web for each machine, at least if the number is 6. for 60 I would invest the effort.