Editing
Apt-mirror
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
Een apt-mirror is effectief in situaties waarin je op grote schaal servers installeert. Het belangrijkste meest zichtbare voordeel is de hoge snelheid van het ophalen van de packages over het lokale netwerk, daarnaast is er een lagere belasting van de externe lijn. Er bestaan twee versies: apt-cacher en apt-cacher-ng. Goede hulp bij installatie: * http://www.howtoforge.com/debian-packages-proxy-with-apt-cacher en nog beter man apt-cacher apt-cacher draait in standard mode. de proxy mode levert performance nadelen op vanwege de configuratie van hosts in /etc/hosts Bekijk installatie: http://mirror.webhuis.nl:3142/apt-cacher Bekijk rapportage: http://mirror.webhuis.nl:3142/apt-cacher/report == apt-mirror server == 1. Opzet Opzetten centrale transparante mirror / cache voor packages met apt-cacher. 2. Uitwerking Goede hulp bij installatie: http://www.howtoforge.com/debian-packages-proxy-with-apt-cacher en nog beter man apt-cacher apt-get install apache2 apt-cacher Configuratie apt-cacher.conf allowed_locations=ftp.nl.debian.org,security.debian.org,packages.webhuis.nl Voor lenny is hieraan toegevoegd: volatile.debian.org apt-cacher draait in standard mode 3. apt-cacher-ng in offline modus Bij demonstrties van onder ander CFEngine, waarin je veel installeert heb je bij voorkeur een mirror in de buurt. apt-cacher-ng vereist Dit kan in de configuratie van apt-cacher-ng: /etc/apt-cacher-ng/acng.conf <br/> <pre> # Forbid outgoing connections, work around them or respond with 503 error offlinemode:0 # offlinemode:1 </pre> 1 = true 4. ToDo <pre> cache_dir=/var/cache/apt-cacher admin_email=root@localhost daemon_port=3142 group=www-data user=www-data allowed_hosts=* denied_hosts= allowed_hosts_6=fec0::/16 denied_hosts_6= allowed_locations=ftp.nl.debian.org,security.debian.org,packages.webhuis.nl,volatile.debian.org/debian-volatile generate_reports=1 clean_cache=1 logdir=/var/log/apt-cacher expire_hours=0 use_proxy=0 limit=0 debug=0 </pre> == apt-mirror client == <pre> # # /etc/apt/sources.list # # # etch # deb http://mirror.webhuis.nl:3142/ftp.nl.debian.org/debian etch main #deb http://ftp.nl.debian.org/debian etch main deb-src http://mirror.webhuis.nl:3142/ftp.nl.debian.org/debian etch main #deb http://yourcache.example.com:3142/ftp.au.debian.org/debian unstable main contrib non-free deb http://mirror.webhuis.nl:3142/security.debian.org etch/updates main deb-src http://mirror.webhuis.nl:3142/security.debian.org/ etch/updates main contrib non-free ## Packages Webhuis #deb http://mirror.webhuis.nl:3142/packages.webhuis.nl/debian etch non-free </pre> <hr> Terug naar: [[Webhuis Infrastructuur]]
Summary:
Please note that all contributions to Webhuis wiki are considered to be released under the GNU Free Documentation License 1.3 or later (see
Project:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Voorpagina
Cobol and PostgreSQL
PostgreSQL
CFEngine
Proxmox
Webhuis Kennisbank
Basale infra
Webhuis bouwstenen
Webhuis configuratie
Webhuis Infra
Webhuis Support
Webhuis Raspberry
Opzet Applicaties
Business Applicaties
Community portal
Current events
Recent changes
Random page
Help
sitesupport
Tools
What links here
Related changes
Special pages
Page information