Apt-proxy: Unterschied zwischen den Versionen

Aus Doku-Wiki
Zur Navigation springenZur Suche springen
Zeile 17: Zeile 17:
 
  ;; All times are in seconds, but you can add a suffix
 
  ;; All times are in seconds, but you can add a suffix
 
  ;; for minutes(m), hours(h) or days(d)
 
  ;; for minutes(m), hours(h) or days(d)
 
 
  ;; Server IP to listen on
 
  ;; Server IP to listen on
 
  address = 172.27.1.11
 
  address = 172.27.1.11
 
 
  ;; Server port to listen on
 
  ;; Server port to listen on
 
  port = 9999
 
  port = 9999
 
 
  ;; Control files (Packages/Sources/Contents) refresh rate
 
  ;; Control files (Packages/Sources/Contents) refresh rate
 
  ;;
 
  ;;
 
  ;; Minimum time between attempts to refresh a file
 
  ;; Minimum time between attempts to refresh a file
 
  min_refresh_delay = 1h
 
  min_refresh_delay = 1h
 
 
  ;; Minimum age of a file before attempting an update (NOT YET IMPLEMENTED)
 
  ;; Minimum age of a file before attempting an update (NOT YET IMPLEMENTED)
 
  ;min_age = 23h
 
  ;min_age = 23h
 
 
  ;; Uncomment to make apt-proxy continue downloading even if all
 
  ;; Uncomment to make apt-proxy continue downloading even if all
 
  ;; clients disconnect.  This is probably not a good idea on a
 
  ;; clients disconnect.  This is probably not a good idea on a
 
  ;; dial up line.
 
  ;; dial up line.
 
  ;; complete_clientless_downloads = 1
 
  ;; complete_clientless_downloads = 1
 
 
  ;; Debugging settings.
 
  ;; Debugging settings.
 
  ;; for all debug information use this:
 
  ;; for all debug information use this:
 
  ;; debug = all:9
 
  ;; debug = all:9
 
  debug = all:4 db:0
 
  debug = all:4 db:0
 
 
  ;; Debugging remote python console
 
  ;; Debugging remote python console
 
  ;; Do not enable in an untrusted environment
 
  ;; Do not enable in an untrusted environment
Zeile 47: Zeile 40:
 
  ;telnet_user = apt-proxy
 
  ;telnet_user = apt-proxy
 
  ;telnet_password = secret
 
  ;telnet_password = secret
 
 
  ;; Network timeout when retrieving from backend servers
 
  ;; Network timeout when retrieving from backend servers
 
  timeout = 15
 
  timeout = 15
 
 
  ;; Cache directory for apt-proxy
 
  ;; Cache directory for apt-proxy
 
  cache_dir = /var/cache/apt-proxy
 
  cache_dir = /var/cache/apt-proxy
 
 
  ;; Use passive FTP? (default=on)
 
  ;; Use passive FTP? (default=on)
 
  ;passive_ftp = on  
 
  ;passive_ftp = on  
 
 
  ;; Use HTTP proxy?
 
  ;; Use HTTP proxy?
 
  ;http_proxy = host:port
 
  ;http_proxy = host:port
 
 
  ;; Enable HTTP pipelining within apt-proxy (for test purposes)
 
  ;; Enable HTTP pipelining within apt-proxy (for test purposes)
 
  ;disable_pipelining=0
 
  ;disable_pipelining=0

Version vom 26. Mai 2006, 09:27 Uhr

APT-Proxy

Der APT-Proxy kann man mit einem normalen Proxy vergleichen.
Er verwaltet jedoch die Debian-Pakete effektiver. Die Einrichtung ist
recht einfach.

Voraussetzung

Diese Dokumentation bezieht sich auf:

Debian Sarge

Installation

# apt-get update
# apt-get install apt-proxy

Konfiguration

[DEFAULT]
;; All times are in seconds, but you can add a suffix
;; for minutes(m), hours(h) or days(d)
;; Server IP to listen on
address = 172.27.1.11
;; Server port to listen on
port = 9999
;; Control files (Packages/Sources/Contents) refresh rate
;;
;; Minimum time between attempts to refresh a file
min_refresh_delay = 1h
;; Minimum age of a file before attempting an update (NOT YET IMPLEMENTED)
;min_age = 23h
;; Uncomment to make apt-proxy continue downloading even if all
;; clients disconnect.  This is probably not a good idea on a
;; dial up line.
;; complete_clientless_downloads = 1
;; Debugging settings.
;; for all debug information use this:
;; debug = all:9
debug = all:4 db:0
;; Debugging remote python console
;; Do not enable in an untrusted environment
;telnet_port = 9998
;telnet_user = apt-proxy
;telnet_password = secret
;; Network timeout when retrieving from backend servers
timeout = 15
;; Cache directory for apt-proxy
cache_dir = /var/cache/apt-proxy
;; Use passive FTP? (default=on)
;passive_ftp = on 
;; Use HTTP proxy?
;http_proxy = host:port
;; Enable HTTP pipelining within apt-proxy (for test purposes)
;disable_pipelining=0