1

升级debian的apt 使用apt-spy打造速度最快的sources.list


用debian也有一段时间了,确实也没注意到apt的功能,只是很平常的使用它罢了。

结果就在今天下午,在公司机房里,由于把debian的安装源给去掉了,debian.cn99.com由于硬盘坏了还没修复好(网上看到大家都这样说,也不知道是不是真的)由于身边没有能查的工具,所以郁闷了好长一会儿,晚上赶紧复习一下,以免日后再犯!

记下这个应该不是太难吧,路径就在/etc/apt/sources.list

deb http://ftp.de.debian.org/debian/ etch main contrib non-free

保存一下,以后就用这个啦 apt-spy

虽然才几百K大小的工具,但是可别小看了它。

可以根据我们的设置,自动生成一份速度最快的sources.list文件。

具体用法可以man一下 man apt-spy

NAME
       apt-spy - program to generate a /etc/apt/sources.list file

SYNOPSIS
       apt-spy  -d distribution  [ -a area ] [ -c config ] [ -e number ] [ -f file ] [ -i file ] [ -m mirror-list ] [ -o output-
       file ] [ -p proxy ] [ -s country-list ] [ -t time ] [ -u update-URL ] [ -w file ] [ -n number ] [ -h ] [ -v ] [ update ]

 

-d 指的是什么版本, -a是area也就是地区,-t时间选项 -e指定服务器的数量

其他的-p代理 -i -什么的没去试。用的时候如果忘记了man一下得了。

记得先备份一下你自己的sources.list这个文件,如果感觉不好就改回原来的,青菜萝卜嘛~

apt-spy -d stable -a asia -t 1

试一下,很爽的~

我猜~这些文章你可能也感兴趣

1 个留言:

Trackbacks:

  1. 更新debian安装源的工具apt-spy

给我留言:

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word