Set up apt proxy cache on Ubuntu server

Source: Internet
Author: User
Keywords Caching server can
Tags aliyun apt bandwidth cache caching configuration consumption default

When the http://www.aliyun.com/zixun/aggregation/13835.html ">ubuntu machine in the same network deploys, updates, or installs packages, it contains an apt agent cache master and records its installation and configuration, Can reduce the time and bandwidth consumed. The Ubuntu server can act as an apt proxy cache, but it is not activated by default. When an Ubuntu machine in a network is installed or updated, it can reduce the bandwidth and time it consumes.

It is a waste of bandwidth and time for every Ubuntu machine in a network to download the same packages and updates over the Internet. Choosing a proper APT proxy cache based on the Ubuntu server solves this problem. This proxy cache must contain the main library and record its installation and configuration.

Alan manages a network of Ubuntu machines that need to download only one package and update, and these packages and updates are available to all machines. Betty deploys many Ubuntu machines every day. She wanted to use an unattended installation to get packages and updates directly through an Ubuntu server on her network. Chuck has some Ubuntu machines at home, and he doesn't want every machine to download packages and updates with limited bandwidth.

Design

Option 1: Use Apt-cacher-ng

Information:

Package version in jaunty: 0.3.4-1
Website: http://www.unix-ag.uni-kl.de/~bloch/acng
Latest Version: 0.3.6-1
License:
Advantages:

You can import into a package file that is already in the cache.
The front end of the network sees statistical reports and sets different functions.
Shortcomings:

Needs to be set on the client. (Change the URL of the mirrored access or APT ' s HTTP proxy settings)

Option 2: Use Apt-cacher

Information:

Package version in jaunty: 1.6.7
Site:
Latest Version: 1.6.7
License: GPL
Advantages:

You can import into a package file that is already in the cache.
Shortcomings:

Needs to be set on the client. (Change the URL of the mirrored access or APT ' s HTTP proxy settings)

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.