Merge pull request #231 from vito-L/master

翻译完成 by Vito
This commit is contained in:
vito-L 2013-10-17 09:09:03 -07:00
commit 610cf28f3f
2 changed files with 77 additions and 79 deletions

View File

@ -1,79 +0,0 @@
Vito
apt-fast: Improve apt-get Download Speed
================================================================================
**[apt-fast][1]** is a “**shell script wrapper**” for **apt-get** and **aptitude** that can drastically improve APT download times by downloading packages with multiple connections per package. apt-fast uses **aria2c** or **axel** download managers to speed up the APT download time. Just like the traditional apt-get package manager, apt-fast supports almost all apt-get functions such as **install, remove, update, upgrade, dist-upgrade** etc. And one more notable feature is it supports proxy too.
**Install apt-fast On Ubuntu**
Use the following PPA to install apt-fast. apt-fast developer says “**Some distros, such as PCLinuxOS include apt-fast in their default repos**”. I expect the same in Ubuntu/Debian default repositories.
To Add apt-fast PPA, enter the following command in Terminal.
sudo add-apt-repository ppa:apt-fast/stable
Update the sources list with command:
sudo apt-get update
Now install it using command:
sudo apt-get install apt-fast
During installation it will ask you to select the maximum number connections to download packages.
![](http://180016988.r.cdn77.net/wp-content/uploads/2013/10/sk@sk-_003.png)
Select No and continue installation. If you select Yes, apt-get wont ask you the confirmation during any package installation.
![](http://180016988.r.cdn77.net/wp-content/uploads/2013/10/sk@sk-_0041.png)
I found **aria2** download manager has been installed along with apt-fast installation automatically. So you dont have to install it separately.
If you want re-configure apt-fast options, you can do it using command:
sudo dpkg-reconfigure apt-fast
**Usage**
Similar to apt-get functions, we can use:
apt-fast install package
apt-fast remove package
apt-fast update
apt-fast upgrade
apt-fast dist-upgrade
and more.
apt-fast package manager in action:
![](http://180016988.r.cdn77.net/wp-content/uploads/2013/10/sk@sk-_0051.png)
**Create alias (Optional)**
Edit **~/.bashrc** file and add the following line at the end.
alias apt-get='apt-fast'
Or simply run the following command to add it in your **~/.bashrc** file.
sudo echo "alias apt-get='apt-fast'" >> ~/.bashrc
From now whenever you run apt-get command to install, remove, update and upgrade packages, it will use apt-fast automatically in the background. Sounds cool? Yes it should.
During testing i found it very fast compared to apt-get when downloading packages. Give it a try, you will agree with me. Cheers!!
--------------------------------------------------------------------------------
via: http://www.unixmen.com/improve-apt-get-download-speed-apt-fast/
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
[1]:https://github.com/ilikenwf/apt-fast

View File

@ -0,0 +1,77 @@
apt-fast改善apt-get下载速度
apt-fast是一个为 **apt-get****aptitude** 的“ **shell脚本封装**通过用每个包的多种连接的方式下载包可以大大改善APT下载时间。apt-fast使用aria2c或axel下载管理器去加快APT下载时间。就像传统的apt-get包管理器apt-fast支持几乎所有的apt-get功能 **install** , **remove** , **update** , **upgrade** , **dist-upgrade** 等等。并且一个显著的特征是它也支持proxy。
**在Ubuntu上安装apt-fast**
使用以下PPA去安装apt-fast。apt-fast开发者说**一些发行版如PCLinux在他们默认的仓库中包括apt-fast** 。”我期待同样包含在Ubuntu/Debian默认仓库中。
添加apt-fast的PPA。在终端中输入以下命令。
sudo add-apt-repository ppa:apt-fast/stable
用命令更新源:
sudo apt-get update
使用命令安装apt-fast
sudo apt-get install apt-fast
在安装期间,它将问你下载包的最大链接数。
![](https://github-camo.global.ssl.fastly.net/d9cba93cec82d5f2e442cb462f441df68cca57fb/687474703a2f2f3138303031363938382e722e63646e37372e6e65742f77702d636f6e74656e742f75706c6f6164732f323031332f31302f736b40736b2d5f3030332e706e67 )
选择No并继续安装。如果你选择Yesapt-get在任何包安装期间不会问你确认与否。
![](https://github-camo.global.ssl.fastly.net/eae85edd1b18a837ab1603ff06b04011f8cd9ff3/687474703a2f2f3138303031363938382e722e63646e37372e6e65742f77702d636f6e74656e742f75706c6f6164732f323031332f31302f736b40736b2d5f303034312e706e67)
我发现 **aria2** 下载管理器已经随着apt-fast的安装而自动安装。所以你不必单独安装aria2。
如果你想重新配置apt-fast选项你可以使用命令
sudo dpkg-reconfigure apt-fast
**用法**
与apt-get相同的功能我们可以使用
apt-fast install package
apt-fast remove package
apt-fast update
apt-fast upgrade
apt-fast dist-upgrade
更多。
工作中的apt-fast包管理器
![](https://github-camo.global.ssl.fastly.net/45749e25eaaa3663ab07cca0bcbbc22c79885381/687474703a2f2f3138303031363938382e722e63646e37372e6e65742f77702d636f6e74656e742f75706c6f6164732f323031332f31302f736b40736b2d5f303035312e706e67)
**创建别名(可选)**
编辑 **~/.bashrc** 文件在末尾添加下面这行。
alias apt-get='apt-fast'
或者简单运行以下命令在你的 **~/.bashrc** 中添加它。
sudo echo "alias apt-get='apt-fast'" >> ~/.bashrc
从现在每当你运行apt-get命令去移除更新和升级包时它将在后台自动使用apt-fast。听起来很酷是的这是必须的。
在测试期间当下载包时我发现它与apt-get相比非常快。试一试你将赞同我。感谢阅读
-------
via: http://www.unixmen.com/improve-apt-get-download-speed-apt-fast/
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
译者:[Vito](https://github.com/Vito) 校对:[校对者ID](https://github.com/校对者ID)
[1]:https://github.com/ilikenwf/apt-fast