apt-get更新软件包
By Default, Ubuntu uses apt-get to install packages and updates. Apt-get is a good tool but you can get much faster download speeds using Apt-Fast when downloading and updating your Ubuntu box.
默认情况下,Ubuntu使用apt-get安装软件包和更新。 Apt-get是一个很好的工具,但是在下载和更新Ubuntu盒时,您可以使用Apt-Fast获得更快的下载速度。
Apt-Fast is a script created by Matt Parnell that allows for up to 26x faster downloads. So how does it work? It is a script which uses Axel, a command line application which accelerates HTTP/FTP downloads. Well, the magic behind this is simple; it opens multiple connections to the server or multiple servers to download from. So basically it works like torrent client, downloading different pieces of the same file from different places simultaneously. Thus, reducing/eliminating the effect of server being overloaded.
Apt-Fast是由马特·帕内尔( Matt Parnell)创建的脚本,可将下载速度提高26倍。 那么它是怎样工作的? 它是使用Axel的脚本,Axel是可加速HTTP / FTP下载的命令行应用程序。 好吧,这背后的魔力很简单。 它会打开与该服务器或多个服务器的多个连接以供下载。 因此,基本上,它像洪流客户端一样工作,可以同时从不同位置下载同一文件的不同片段。 因此,减少/消除了服务器过载的影响。
To get Apt-Fast on your system, download the file “apt-fast.sh” from the link at the bottom. Once downloaded, open a terminal window to continue from there. Start by navigating to the file’s directory and rename it using this easy command:
要在您的系统上获取Apt-Fast,请从底部的链接下载文件“ apt-fast.sh”。 下载完成后,打开一个终端窗口以从那里继续。 首先导航到文件的目录,然后使用以下简单命令将其重命名:
mv apt-fast.sh apt-fast
mv apt-fast.sh apt-fast
Now you need to move the file to “/usr/bin” to make it executable. Do so by using:
现在,您需要将文件移动到“ / usr / bin”以使其可执行。 为此,请使用:
mv apt-fast /usr/bin/
mv apt-fast / usr / bin /
One last command to add execution permission to the file:
最后一个向文件添加执行权限的命令:
chmod +x apt-fast
chmod + x apt-fast
And we are done. Apt-fast is now installed and ready to run. For all future installing and updating operations substitute “apt-get” with “apt-fast” in the command line. For example:
我们完成了。 Apt-fast现在已安装并可以运行。 对于将来的所有安装和更新操作,在命令行中将“ apt-get”替换为“ apt-fast”。 例如:
apt-get install chromium
易于安装Chrome
Will be:
将会:
apt-fast install chromium
快速安装Chrome
And:
和:
apt-get update
apt-get更新
Will be:
将会:
apt-fast update
apt-快速更新
Enjoy your supercharged downloading speeds and don’t forget to come back for more interesting Ubuntu stuff.
享受增压的下载速度,别忘了回来获得更多有趣的Ubuntu东西。
Download apt-fast [via Mattparnell]
下载apt-fast [通过Mattparnell ]
翻译自: https://www.howtogeek.com/59265/how-to-speed-up-package-downloads-and-updates-with-apt-fast/
apt-get更新软件包