Created
July 17, 2016 17:34
-
-
Save hsingh23/a46391747a7cd7b758a96a09ed94ab89 to your computer and use it in GitHub Desktop.
/etc/apt-fast.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################### | |
# CONFIGURATION OPTIONS | |
################################################################### | |
# Every item has a default value besides MIRRORS (which is unset). | |
# Use aptitude or apt-get? | |
# Note that for outputting the package URI list, we always use apt-get | |
# ...since aptitude can't do this | |
# Optionally add the FULLPATH to apt-get or apt-rpm or aptitude | |
# e.g. /usr/bin/aptitude | |
# | |
# Default: apt-get | |
# | |
_APTMGR=apt-get | |
# Enable DOWNLOADBEFORE to suppress apt-fast confirmation dialog and download | |
# packages directly. | |
# | |
# Default: dialog enabled | |
# | |
DOWNLOADBEFORE=true | |
# Choose mirror list to speed up downloads from same archive. To select some | |
# mirrors take a look at your distribution's archive mirror lists. | |
# Debian: http://www.debian.org/mirror/list | |
# Ubuntu: https://launchpad.net/ubuntu/+archivemirrors | |
# | |
# Examples: | |
# To use some German mirrors and official Debian and Ubuntu archives you can use: | |
# MIRRORS=( 'http://ftp.debian.org/debian,http://ftp2.de.debian.org/debian,http://ftp.de.debian.org/debian,ftp://ftp.uni-kl.de/debian' | |
# 'http://archive.ubuntu.com/ubuntu,http://de.archive.ubuntu.com/ubuntu,http://ftp.halifax.rwth-aachen.de/ubuntu,http://ftp.uni-kl.de/pub/linux/ubuntu,http://mirror.informatik.uni-mannheim.de/pub/linux/distributions/ubuntu/' ) | |
# To use French Ubuntu mirrors you can use: | |
# MIRRORS=( 'http://fr.archive.ubuntu.com/ubuntu,http://bouyguestelecom.ubuntu.lafibre.info/ubuntu,http://mirror.ovh.net/ubuntu,http://ubuntu-archive.mirrors.proxad.net/ubuntu' ) | |
# | |
# Default: disabled | |
# | |
MIRRORS=("http://us-east-1.ec2.archive.ubuntu.com/ubuntu", "http://us-east-2.ec2.archive.ubuntu.com/ubuntu", "http://us-west-1.ec2.archive.ubuntu.com/ubuntu", "http://mirrors.digitalocean.com/ubuntu/", "http://mirrors.advancedhosters.com/ubuntu/", "http://mirror.us.leaseweb.net/ubuntu/", "http://us.archive.ubuntu.com/ubuntu/", "http://mirrors.bloomu.edu/ubuntu/", "http://mirrors.rit.edu/ubuntu/", "http://mirrors.tripadvisor.com/ubuntu/", "http://ubuntu.mirror.constant.com/", "http://mirrors.liquidweb.com/ubuntu/", "http://mirror.metrocast.net/ubuntu/", "http://mirror.symnds.com/ubuntu/", "http://ubuntu.mirrors.pair.com/archive/", "http://mirror.math.princeton.edu/pub/ubuntu/", "http://mirror.cogentco.com/pub/linux/ubuntu/", "http://ubuntu.mirrors.tds.net/pub/ubuntu/", "http://mirror.clarkson.edu/ubuntu/", "http://mirror.jmu.edu/pub/ubuntu/", "http://mirror.steadfast.net/ubuntu/", "http://mirrors.gigenet.com/ubuntuarchive/", "http://pubmirrors.dal.corespace.com/ubuntu/", "http://mirror.team-cymru.org/ubuntu/", "http://mirror.atlantic.net/ubuntu/", "http://mirrors.maine.edu/ubuntu/", "http://ubuntu.localmsp.org/ubuntu/", "http://mirror.cc.columbia.edu/pub/linux/ubuntu/archive/", "http://lug.mtu.edu/ubuntu/", "http://mirror.nexcess.net/ubuntu/", "http://mirrors.usinternet.com/ubuntu/archive/", "http://ubuntu.mirror.frontiernet.net/ubuntu/", "http://ftp.usf.edu/pub/ubuntu/", "http://ubuntuarchive.mirror.nac.net/", "http://cosmos.cites.illinois.edu/pub/ubuntu/", "http://mirror.umd.edu/ubuntu/", "http://mirror.stjschools.org/public/ubuntu-archive/", "http://www.club.cc.cmu.edu/pub/ubuntu/", "http://ubuntu.mirrors.wvstateu.edu/", "http://mirrordenver.fdcservers.net/ubuntu/", "http://mirrors.xmission.com/ubuntu/", "http://archive.linux.duke.edu/ubuntu/", "http://mirrors.us.kernel.org/ubuntu/", "http://mirror.htnshost.com/ubuntu/", "http://mirrors.namecheap.com/ubuntu/", "http://mirrors.acm.jhu.edu/ubuntu/", "http://mirror.lstn.net/ubuntu/", "http://mirror.n5tech.com/ubuntu/", "http://archive.ubuntu.com/ubuntu/", "http://mirror.math.ucdavis.edu/ubuntu/", "http://mirrors.accretive-networks.net/ubuntu/", "http://mirrors.wikimedia.org/ubuntu/", "http://mirrors.ocf.berkeley.edu/ubuntu/", "http://mirrors.mit.edu/ubuntu/", "http://ftp.ussg.iu.edu/linux/ubuntu/", "http://mirrors.cat.pdx.edu/ubuntu/", "http://mirrors.sonic.net/ubuntu/", "http://mirrors.syringanetworks.net/ubuntu-archive/", "http://mirror.picosecond.org/ubuntu/", "http://mirror.tocici.com/ubuntu/", "http://mirrors.easynews.com/linux/ubuntu/", "http://mirror.uoregon.edu/ubuntu/", "http://ubuntu.osuosl.org/ubuntu/", "http://mirror.cs.pitt.edu/ubuntu/archive/", "http://ftp.utexas.edu/ubuntu/", "http://mirror.pnl.gov/ubuntu/", "http://dist1.800hosting.com/ubuntu/", "http://mirror.hmc.edu/ubuntu/", "http://mirror.ancl.hawaii.edu/linux/ubuntu/", "http://mirrors.arpnetworks.com/Ubuntu/", "http://ubuntu.cs.utah.edu/ubuntu/", "http://reflector.westga.edu/repos/Ubuntu/archive/", "http://ubuntu.securedservers.com/", "http://mirror.cc.vt.edu/pub2/ubuntu/", "http://mirror.scalabledns.com/ubuntu/") | |
# Maximum number of connections | |
# You can use this value in _DOWNLOADER command. Escape with ${}: ${_MAXNUM} | |
# | |
# Default: 5 | |
# | |
_MAXNUM=35 | |
# Maximum number of connections per server | |
# Default: 10 | |
# | |
# _MAXCONPERSRV=10 | |
# Download file using given number of connections | |
# If more than N URIs are given, first N URIs are used and remaining URIs are used for backup. | |
# If less than N URIs are given, those URIs are used more than once so that N connections total are made simultaneously. | |
# | |
# _SPLITCON=8 | |
# Split size i.e. size of each piece | |
# Possible Values: 1M-1024M | |
# | |
# _MINSPLITSZ="1M" | |
# Piece selection algorithm to use | |
# Available values are: default, inorder, geom | |
# default: selects piece so that it reduces the number of establishing connection, reasonable for most cases | |
# inorder: selects pieces in sequential order starting from first piece | |
# geom: selects piece which has minimum index like inorder, but it exponentially increasingly keeps space from previously selected pieces | |
# | |
# _PIECEALGO="default" | |
# Downloadmanager listfile | |
# You can use this value in _DOWNLOADER command. Escape with ${}: ${DLLIST} | |
# | |
# Default: /tmp/apt-fast.list | |
# | |
DLLIST='/tmp/apt-fast.list' | |
# Download command to use. Temporary download list is designed for aria2. But | |
# you can choose another download command or download manager. It has to | |
# support following input file syntax (\t is tab character): | |
# | |
# # Comment | |
# MIRROR1\tMIRROR2\tMIRROR3... | |
# out=FILENAME1 | |
# MIRROR1\tMIRROR2\tMIRROR3... | |
# out=FILENAME2 | |
# ... | |
# | |
# Examples: | |
# aria2c with a proxy (set username, proxy, ip and password!) | |
# _DOWNLOADER='aria2c -c -j ${_MAXNUM} -x ${_MAXCONPERSRV} -s ${_SPLITCON} --min-split-size=${_MINSPLITSZ} --stream-piece-selector=${_PIECEALGO} --http-proxy=http://username:password@proxy_ip:proxy_port -i ${DLLIST}' | |
# | |
# Default: _DOWNLOADER='aria2c -c -j ${_MAXNUM} -x ${_MAXCONPERSRV} -s ${_SPLITCON} --min-split-size=${_MINSPLITSZ} --stream-piece-selector=${_PIECEALGO} -i ${DLLIST} --connect-timeout=600 --timeout=600 -m0' | |
# | |
_DOWNLOADER='aria2c -c -j ${_MAXNUM} -x ${_MAXNUM} -s ${_MAXNUM} --min-split-size=1M -i ${DLLIST} --connect-timeout=600 --timeout=600 -m0' | |
# Download temp folder for Downloadmanager | |
# example /tmp/apt-fast. Standard is /var/cache/archives/apt-fast | |
# | |
# Default: /var/cache/apt/archives/apt-fast | |
# | |
DLDIR='/var/cache/apt/archives/apt-fast' | |
# APT archives cache directory | |
# | |
# Default /var/cache/apt/archives | |
# (APT configuration items Dir::Cache and Dir::Cache::archives) | |
# | |
APTCACHE='/var/cache/apt/archives' | |
# apt-fast colors | |
# Colors are disabled when not using a terminal. | |
# | |
# Default colors are: | |
# cGreen='\e[0;32m' | |
# cRed='\e[0;31m' | |
# cBlue='\e[0;34m' | |
# endColor='\e[0m' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment