gentoo sync 镜像无法使用之后

换到电信后,原先使用的 sync 镜像无法使用了,速度巨慢不说,还经常超时,那叫一个痛苦,好在还有其它办法可以更新。

  1. 到 gentoo 的镜像列表下载最新的 portage 文件,进行本地更新。
  2. tar -jxvf portage-latest.tar.bz2
    rsync -avuz –del portage/ /usr/portage

  3. 利用代理软件。proxychains 能够搭建父级代理为 socks 的 http 代理,特别适用于 tor 或者 ssh 隧道。
  4. //建立 ssh 隧道,端口为 9999
    ssh -N -D 9999 -f user@example.com
    //修改 /etc/proxychains.conf
    socks5 127.0.0.1 9999
    //进行更新
    proxychains eix-sync

    哇,速度是不是特别快?

Tags: , , , ,

This entry was posted on Sunday, June 14th, 2009 at 1:06 pm and is filed under linux. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Posts you may enjoy

Leave a Reply

Please copy the string LBPT5b to the field below: