Skip to content

Commit e479157

Browse files
committed
Add apt-fast
1 parent 34d5571 commit e479157

File tree

14 files changed

+1833
-0
lines changed

14 files changed

+1833
-0
lines changed

apt-fast/LICENSE

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

apt-fast/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# apt-fast
2+
apt-fast with little modification

apt-fast/apt-fast/DEBIAN/control

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Package: apt-fast
2+
Version: 1.8.3~144+git3a6bd77-0ubuntu1~ppa5
3+
Architecture: all
4+
Maintainer: Saikrishna Arcot <[email protected]>
5+
Installed-Size:160
6+
Depends: debconf (>= 0.5) | debconf-2.0, aria2
7+
Suggests: aptitude
8+
Section: admin
9+
Priority: optional
10+
Homepage: https://github.com/ilikenwf/apt-fast.git
11+
Description: shellscript wrapper for apt-get or aptitude
12+
apt-fast is a shellscript wrapper for apt-get that can drastically improve apt
13+
download times by downloading packages in parallel, with multiple connections
14+
per package.
15+
Original-Maintainer: Dominique Lasserre <[email protected]>

apt-fast/apt-fast/DEBIAN/md5sums

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
dcde77af2d26648f34619ea7dc81be5c DEBIAN/control
2+
d41d8cd98f00b204e9800998ecf8427e DEBIAN/md5sums
3+
534e3da429d4f3453fea4edd78a4ab75 usr/sbin/apt-fast
4+
4b18be3d048db1efe79550e1c6852a58 usr/share/lintian/overrides/apt-fast
5+
bb5d4fe824e769f6ec1dccd02141b686 usr/share/doc/apt-fast/copyright
6+
4b5a513a30b37b8d357f391e3349a16d usr/share/doc/apt-fast/README.Debian
7+
5efb8ca96f57614437d9cce8855b0cbb usr/share/doc/apt-fast/changelog.Debian.gz
8+
3ebfb7e7eb11f6c236c8e0a3102a07d5 usr/share/man/man5/apt-fast.conf.5.gz
9+
042654ddf9a8fcb74791efc72de7c686 usr/share/man/man8/apt-fast.8.gz
10+
2081777bb80d345866c63256b116b6a7 usr/share/zsh/functions/Completion/Debian/_apt-fast
11+
450db446c436ec2fe43b0ce26819318a usr/share/bash-completion/completions/apt-fast
12+
8c03228ab18620073c901019f107ba06 etc/apt-fast.conf
Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
###################################################################
2+
# CONFIGURATION OPTIONS
3+
###################################################################
4+
# Every item has a default value besides MIRRORS (which is unset).
5+
6+
# Use aptitude or apt-get?
7+
# Note that for outputting the package URI list, we always use apt-get
8+
# ...since aptitude can't do this
9+
# Optionally add the FULLPATH to apt-get or apt-rpm or aptitude
10+
# e.g. /usr/bin/aptitude
11+
#
12+
# Default: apt-get
13+
#
14+
#_APTMGR=apt-get
15+
16+
17+
# Enable DOWNLOADBEFORE to suppress apt-fast confirmation dialog and download
18+
# packages directly.
19+
#
20+
# Default: dialog enabled
21+
#
22+
#DOWNLOADBEFORE=true
23+
24+
25+
# Choose mirror list to speed up downloads from same archive. To select some
26+
# mirrors take a look at your distribution's archive mirror lists.
27+
# Debian: http://www.debian.org/mirror/list
28+
# Ubuntu: https://launchpad.net/ubuntu/+archivemirrors
29+
#
30+
# Examples:
31+
# To use some German mirrors and official Debian and Ubuntu archives you can use:
32+
# MIRRORS=( 'http://ftp.debian.org/debian,http://ftp2.de.debian.org/debian,http://ftp.de.debian.org/debian,ftp://ftp.uni-kl.de/debian'
33+
# '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/' )
34+
# To use French Ubuntu mirrors you can use:
35+
# 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' )
36+
#
37+
# Default: disabled
38+
#
39+
#MIRRORS=( 'none' )
40+
41+
42+
# Maximum number of connections
43+
# You can use this value in _DOWNLOADER command. Escape with ${}: ${_MAXNUM}
44+
#
45+
# Default: 5
46+
#
47+
#_MAXNUM=5
48+
49+
50+
# Maximum number of connections per server
51+
# Default: 10
52+
#
53+
# _MAXCONPERSRV=10
54+
55+
56+
# Download file using given number of connections
57+
# If more than N URIs are given, first N URIs are used and remaining URIs are used for backup.
58+
# If less than N URIs are given, those URIs are used more than once so that N connections total are made simultaneously.
59+
#
60+
# _SPLITCON=8
61+
62+
63+
# Split size i.e. size of each piece
64+
# Possible Values: 1M-1024M
65+
#
66+
# _MINSPLITSZ="1M"
67+
68+
69+
# Piece selection algorithm to use
70+
# Available values are: default, inorder, geom
71+
# default: selects piece so that it reduces the number of establishing connection, reasonable for most cases
72+
# inorder: selects pieces in sequential order starting from first piece
73+
# geom: selects piece which has minimum index like inorder, but it exponentially increasingly keeps space from previously selected pieces
74+
#
75+
# _PIECEALGO="default"
76+
77+
78+
# Downloadmanager listfile
79+
# You can use this value in _DOWNLOADER command. Escape with ${}: ${DLLIST}
80+
#
81+
# Default: /tmp/apt-fast.list
82+
#
83+
#DLLIST=/tmp/apt-fast.list
84+
85+
86+
# Download command to use. Temporary download list is designed for aria2. But
87+
# you can choose another download command or download manager. It has to
88+
# support following input file syntax (\t is tab character):
89+
#
90+
# # Comment
91+
# MIRROR1\tMIRROR2\tMIRROR3...
92+
# out=FILENAME1
93+
# MIRROR1\tMIRROR2\tMIRROR3...
94+
# out=FILENAME2
95+
# ...
96+
#
97+
# Examples:
98+
# aria2c with a proxy (set username, proxy, ip and password!)
99+
# _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}'
100+
#
101+
# 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'
102+
#
103+
#_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'
104+
105+
106+
# Download temp folder for Downloadmanager
107+
# example /tmp/apt-fast. Standard is /var/cache/apt-fast
108+
#
109+
# Default: /var/cache/apt/apt-fast
110+
#
111+
#DLDIR=/var/cache/apt/apt-fast
112+
113+
114+
# APT archives cache directory
115+
#
116+
# Default /var/cache/apt/archives
117+
# (APT configuration items Dir::Cache and Dir::Cache::archives)
118+
#
119+
#APTCACHE=/var/cache/apt/archives
120+
121+
122+
# apt-fast colors
123+
# Colors are disabled when not using a terminal.
124+
#
125+
# Default colors are:
126+
# cGreen='\e[0;32m'
127+
# cRed='\e[0;31m'
128+
# cBlue='\e[0;34m'
129+
# endColor='\e[0m'

0 commit comments

Comments
 (0)