In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to use multiple connections in Ubuntu Linux 16.04LTS to accelerate apt-get/apt. I believe most people don't know much about it, so share this article for your reference. I hope you can learn a lot after reading this article. Let's learn about it.
You need to use apt-fast as a shell wrapper. It downloads a package simultaneously over multiple connections to speed up apt-get/apt and aptitude commands. All packages will be downloaded at the same time. It uses aria2c as the default download accelerator.
Install apt-fast tools
Try the following command in Ubuntu Linux 14.04 or later:
$sudo add-apt-repository ppa:saiarcot895/myppa
Sample output:
Update your warehouse:
$sudo apt-get update
Or
$sudo apt update
Install apt-fast:
$sudo apt-get-y install apt-fast
Or
$sudo apt- y install apt-fast
Sample output:
Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: aria2 libc-ares2 libssh3-1 Suggested packages: aptitude The following NEW packages will be installed: apt-fast aria2 libc-ares2 libssh3-10 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. Need to get 1282 kB of archives. After this operation, 4786 kB of additional disk space will be used. Do you want to continue? Y Get:1 http://01.archive.ubuntu.com/ubuntu xenial/universe amd64 libssh3-1 amd64 1.5.0-2 [70.3 kB] Get:2 http://ppa.launchpad.net/saiarcot895/myppa/ubuntu xenial/main amd64 apt-fast all 1.8.3~137+git7b72bb7-0ubuntu1~ppa3~xenial1 [34.4 kB] Get:3 http://01.archive.ubuntu.com/ubuntu xenial/main amd64 libc-ares2 amd64 1.10.0-3 [33.9 kB] Get : 4 http://01.archive.ubuntu.com/ubuntu xenial/universe amd64 aria2 amd64 1.19.0-1build1 [1143 kB] 54% [4 aria2 486 kB/1143 kB 42%] 20.4 kB/s 32s
Configure apt-fast
You will get the following prompt (you must enter a value from 5 to 16):
And
You can also edit the settings directly:
$sudo vi / etc/apt-fast.conf
Please note that this tool is not for slow network connections, it is for fast network connections. If your Internet speed is slow, you won't be able to benefit from this tool.
How do I use the apt-fast command?
The syntax is:
Apt-fast commandapt-fast [options] command
Use apt-fast to retrieve the new package list
Sudo apt-fast update
Perform an upgrade using apt-fast
Sudo apt-fast upgrade
To perform a release upgrade (release or force kernel upgrade), type:
$sudo apt-fast dist-upgrade
Install a new package
The syntax is:
Sudo apt-fast install pkg
For example, to install nginx, type:
$sudo apt-fast install nginx
Sample output:
Delete package
$sudo apt-fast remove pkg$ sudo apt-fast remove nginx
Delete the package and its configuration file
$sudo apt-fast purge pkg$ sudo apt-fast purge nginx
Delete all unused packages
$sudo apt-fast autoremove
Download the source package
$sudo apt-fast source pkgNameHere
Clean up downloaded files
$sudo apt-fast clean
Clean up old download files
$sudo apt-fast autoclean
Verify unbroken dependencies
$sudo apt-fast check
Download the binary package to the current directory
$sudo apt-fast download pkgNameHere$ sudo apt-fast download nginx
Sample output:
[# 7bee0c 0B/0B CN:1 DL:0B] 07/26 15:35:42 [NOTICE] Verification finished successfully. File=/home/vivek/nginx_1.10.0-0ubuntu0.16.04.2_all.deb 07 0ubuntu0.16.04.2_all.deb Download Results 26 15:35:42 [NOTICE] Download complete: / home/vivek/nginx_1.10.0-0ubuntu0.16.04.2_all.deb Download Results: gid | stat | avg speed | path/URI = + = + = 7bee0c | OK | home/vivek/nginx_1.10.0 a | / home/vivek/nginx_1.10.0-0ubuntu0.16.04.2_all.deb Status Legend: (OK): download completed.
Download and display the changelog of the specified package
The above $sudo apt-fast changelog pkgNameHere $sudo apt-fast changelog nginx is all the contents of the article "how to use multiple connections to accelerate apt-get/apt in Ubuntu Linux 16.04LTS". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.