Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1021670
  • 博文数量: 297
  • 博客积分: 11721
  • 博客等级: 上将
  • 技术积分: 3431
  • 用 户 组: 普通用户
  • 注册时间: 2009-05-25 10:21
文章分类

全部博文(297)

文章存档

2016年(9)

2011年(71)

2010年(137)

2009年(80)

分类: LINUX

2010-02-23 13:11:39

当然,刚装完系统时是没有 apt-spy 的,这时候我们可以暂时先找个可用的源代替,如(写在 /etc/apt/sources.list 中):

deb http://http.us.debian.org/debian/ stable main

执行以下命令更新软件包列表:

apt-get update

然后执行以下命令安装 apt-spy:

apt-get install apt-spy

从源上下载一份源的镜像列表():

apt-spy update

测试亚洲地区的源的速度,并自动写入 sources.list:

apt-spy -d unstable -a asia -t 5

现在可以去 source.list 里看一下都更新了些什么。
# apt-spy -h

使用: apt-spy [选项]

选项:

#有时间再翻译一下
-d distribution Debian distribution (ie, stable). Required unless updating.
-a area Area to benchmark. (eg, Europe).
-c config Configuration file to use.
-e number Number of servers to benchmark before exiting.
-f file File to grab when benchmarking. (relative to Debian base).
-i file Specify input file. For use with the -w option.
-m mirror-list Mirror list to use, or mirror-list to update when updating.
-o output-file Where to put output.
-p proxy Proxy server to use. In format
阅读(574) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~