.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "auto-apt-proxy 1" .TH auto-apt-proxy 1 "2023-03-29" "" "" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" auto\-apt\-proxy \- autodetect common APT proxy setups .SH "USAGE" .IX Header "USAGE" \&\fBauto-apt-proxy\fR .PP \&\fBauto-apt-proxy\fR \fI[\s-1COMMAND\s0 [\s-1ARGS ...\s0]]\fR .SH "DESCRIPTION" .IX Header "DESCRIPTION" \&\fBauto-apt-proxy\fR is an \s-1APT\s0 proxy autodetector, and detects common setups by checking localhost, your gateway and other \*(L"interesting\*(R" machines on your network for well-known \s-1APT\s0 proxies such as apt-cacher-ng and others. .PP When called with no arguments, \fBauto-apt-proxy\fR simply prints the address of a detected proxy to the standard output. This package installs an \s-1APT\s0 configuration file that makes \s-1APT\s0 use \fBauto-apt-proxy\fR to detect a proxy on every invocation of \s-1APT.\s0 .PP When called with arguments, they are assumed to be a command. Such command will be executed with the common environment variables used for specifying \s-1HTTP\s0 proxies (\fIhttp_proxy\fR, \fI\s-1HTTP_PROXY\s0\fR) set to the detected proxy. This way the executed command will be able to transparently use any detected \s-1APT\s0 proxy. Note that for this to work, any programs invoked by the given command must have their own support for detecting \s-1HTTP\s0 proxies from those environment variables, and for using them. .SH "CONFIGURATION" .IX Header "CONFIGURATION" When your apt proxy is installed on localhost or your default gateway, it should Just Work. If you install it somewhere else, you can create an explicit \s-1SRV\s0 record to tell auto-apt-proxy about it. .PP Suppose your corporate domain is \*(L"example.com\*(R", and apt-cacher-ng is installed on \*(L"apt\-cacher\-ng.example.com\*(R", and auto-apt-proxy is installed on \*(L"alices\-laptop.example.com\*(R". .PP The appropriate \s-1SRV\s0 record in dnsmasq.conf would look like this: .PP .Vb 1 \& srv\-host=_apt_proxy._tcp.example.com,apt\-cacher\-ng.example.com,3142 .Ve .PP The appropriate nsd/bind zonefile entry would look like this (untested): .PP .Vb 1 \& _apt_proxy._tcp.@ IN SRV 0 0 3142 apt\-cacher\-ng.@ .Ve .PP As an alternative to an \s-1SRV\s0 record, one can also define a special hostname which needs to be resolved via \s-1DNS\s0 or local \fI/etc/hosts\fR file, called \&\fBapt-proxy\fR. For example, if your network has a local apt proxy at 9.9.9.9, then add this line to \fI/etc/hosts\fR: .PP .Vb 1 \& 9.9.9.9 apt\-proxy .Ve .SH "CACHING" .IX Header "CACHING" By default, auto-apt-proxy will cache its results for 60 seconds. .PP To disable the cache, set the `AUTO_APT_PROXY_NO_CACHE` environment variable to any non-empty string. .SH "EXAMPLES" .IX Header "EXAMPLES" $ \fBauto-apt-proxy\fR .PP Just prints the detected \s-1APT\s0 proxy .PP $ \fBauto-apt-proxy\fR debootstrap sid /my/chroot .PP Creates a new Debian \fIchroot\fR downloading packages from the local proxy. .SH "COPYRIGHT" .IX Header "COPYRIGHT" Copyright (C) 2016\-2020 Antonio Terceiro .PP This program is free software: you can redistribute it and/or modify it under the terms of the \s-1GNU\s0 General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. .PP This program is distributed in the hope that it will be useful, but \s-1WITHOUT ANY WARRANTY\s0; without even the implied warranty of \&\s-1MERCHANTABILITY\s0 or \s-1FITNESS FOR A PARTICULAR PURPOSE.\s0 See the \&\s-1GNU\s0 General Public License for more details. .PP You should have received a copy of the \s-1GNU\s0 General Public License along with this program. If not, see .