Fast snail mail: apt-fast

Source: Internet
Author: User

Fast snail mail: apt-fast

If you often feel that apt-get or aptitude package installation is too slow On Debian or Ubuntu systems, there are several ways to improve this situation. Have you ever considered changing the default image site in use? Have you ruled out the possibility that the upstream bandwidth of the Internet Connection becomes a bottleneck?

If not, try the third option: Use the apt-fast tool. Apt-fast is actually a shell script container written around apt-get and aptitude. It can speed up package download. Apt-fast essentially uses the aria2 download tool, which can download one file (like BitTorrent download) from multiple images in parallel in block mode ).

Apt-fast-use axel to install apt-get multi-thread acceleration Software

Apt acceleration tool for Ubuntu: apt-fast

Install apt-fast to speed up apt-get download

Apt-fast: Apsara stack apt-get

Use apt-fast to accelerate your Ubuntu apt

Install apt-fast On Debian or Ubuntu

The following describes how to install apt-fast On Debian-based Linux.

Debian
  1. $ Sudo apt-get install aria2
  2. $ Wget https://github.com/ilikenwf/apt-fast/archive/master.zip
  3. $ Unzip master.zip
  4. $ Cd apt-fast-master
  5. $ Sudo cp apt-fast/usr/bin
  6. $ Sudo cp apt-fast.conf/etc
  7. $ Sudo cp./man/apt-fast.8/usr/share/man/man8
  8. $ Sudo gzip/usr/share/man/man8/apt-fast.8
  9. $ Sudo cp./man/apt-fast.conf.5/usr/share/man/man5
  10. $ Sudo gzip/usr/share/man/man5/apt-fast.conf.5
Ubuntu 14.04 and later
  1. $ Sudo add-apt-repository ppa: saiarcot895/myppa
  2. $ Sudo apt-get update
  3. $ Sudo apt-get install apt-fast
Ubuntu 11.04 to Ubuntu 13.10
  1. $ Sudo add-apt-repository ppa: apt-fast/stable
  2. $ Sudo apt-get update
  3. $ Sudo apt-get install apt-fast

During installation, You need to select a default Package Manager (e.g., apt-get. aptitude) and set other options. However, you can change the settings at any time by editing the configuration file/etc/apt-fast/conf.

Configure apt-get

After installation is complete, you need to configure a series of images that apt-fast uses in the/etc/apt-fast.conf.

You can find a series of Debian/Ubuntu images in the URL below.

  • Debian: http://www.debian.org/mirror/list
  • Ubuntu: https://launchpad.net/ubuntu/+archivemirrors

After selecting those images that are geographically close to you, you need to add the selected images to the/etc/apt-fast.conf in the following format.

  1. $ Sudo vi/etc/apt-fast.conf

Debian:

  1. MIRRORS = ('HTTP: // response /')

Ubuntu/Mint:

  1. MIRRORS = ('HTTP: // response /')

As shown above, individual images of a specific file must be separated by commas. You need to include the default image specified site in the MIRRORS string of/etc/apt/sources. list.

For more details, please continue to read the highlights on the next page:

  • 1
  • 2
  • Next Page

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.