如何使得apt-get install从多个repository并行下载

June 6, 2011 by · Comments Off on 如何使得apt-get install从多个repository并行下载
Filed under: linux 

http://www.mattparnell.com/linux/apt-fast/ 下载apt-fast.sh,拷贝到/usr/local/bin目录:
wget http://www.mattparnell.com/linux/apt-fast/apt-fast.sh
chmod +x apt-fast.sh
sudo cp apt-fast.sh /usr/local/bin

推荐使用 apt fat with aria2c 来从多个源下载来提高速度,
wget http://www.beyondlinux.com/blog/wp-content/uploads/2011/06/apt-fast_aria2c.txt -O apt-fast_aria2c.sh
chmod +x apt-fast_aria2c.sh
sudo cp apt-fast_aria2c.sh /usr/local/bin

然后使用 apt-fast_aria2c.sh install xxxx来安装软件包,设置多个mirrors时,速度会比apt-get install快上很多倍。 如:

sudo apt-fast_aria2c.sh install mplayer smplayer cdcd

Digg This
Reddit This
Stumble Now!
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)