LinuxTOY 是一个致力于提供 Linux 相关资讯的专题站点。如果您发现了好用好玩的 Linux 东东并愿意发扬自由、分享的精神,可以点击顶部导航 Contact 按钮进行投稿。

Related entries

apt-proxy:apt 代理, 缓存

[撰文/hmy]

假如有多台机器需要从 debian(or ubuntu)的库里面下载软件来安装,如果每个机器都去网上下载一遍,肯定不划算。用 apt-proxy 可以解决这个问题。会把你现在的软件缓存起来。以后的机器安装这个软件就是从本地下载了。

另外有一个通用的解决方法是本地安装 squid,不过要做一些调整,因为 squid 默认缓存小于 4M 的文件。

参考

http://apt-proxy.sourceforge.net

署名 • 注明出处 • 非商业性使用

8 Comments

  1. 1 Noxide Commented @ 2008-09-04 6:20 pmReply to this comment

    暂时还没有大规模使用DEBIAN的应用。关注

  2. 2 Nemo Commented @ 2008-09-04 7:06 pmReply to this comment

    apt-get 的deb包不是都在/var/cache/apt/目录底下嘛

  3. 3 b1gm0use Commented @ 2008-09-04 7:21 pmReply to this comment

    这个工具在一个局域网里有多台相同系统并且出口速度比较慢的环境下还是不错的,我以前用过一段时间

  4. 4 lvscar Commented @ 2008-09-04 9:09 pmReply to this comment

    可以考虑使用apt-mirror 架设本地软件仓库镜像。

  5. 5 rgaobj Commented @ 2008-09-04 9:58 pmReply to this comment

    这个东东好啊,同时部署多台机器方便多了

  6. 6 Leo Commented @ 2008-09-05 8:59 amReply to this comment

    /var/cache/apt/只是debian的缓存,我一般把他们都删除掉,不过Noxide说的很对,现在debian/ubuntu不会出现大规模的应用!

  7. 7 hmy Commented @ 2008-09-05 9:10 amReply to this comment

    @noxide
    二三百台也还算有点规模吧.

  8. 8 ee Commented @ 2008-09-05 12:57 pmReply to this comment

    aptoncd不好吗