
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更新軟件包