Cleaned up and merge other Linux snippit repo
Meged https://git.bprieshof.nl/brammp/linux into ./Linux
This commit is contained in:
32
Linux/Docs/Setup-apt-cacher-ng.md
Normal file
32
Linux/Docs/Setup-apt-cacher-ng.md
Normal file
@@ -0,0 +1,32 @@
|
||||
##OUTDATED##
|
||||
# apt-cacher-ng
|
||||
Default port 3142
|
||||
## Deb(ubuntu/debian) repos work out of the box server sided
|
||||
### client
|
||||
`echo 'Acquire::http::Proxy "http://<ip>:<port>";' > /etc/apt/apt.conf.d/01proxy`
|
||||
|
||||
## For Centos are modifications needed
|
||||
### Server
|
||||
`curl https://www.centos.org/download/full-mirrorlist.csv | sed 's/^.*"http:/http:/' | sed 's/".*$//' | grep ^http >/etc/apt-cacher-ng/centos_mirrors`
|
||||
|
||||
SSL Passthrough
|
||||
#### /etc/apt-cacher-ng/acng.conf
|
||||
```
|
||||
VfilePatternEx: ^/\?release=[0-9]+&arch=
|
||||
VfilePatternEx: ^(/\?release=[0-9]+&arch=.*|.*/RPM-GPG-KEY-.*|/metalink\?repo=epel\$
|
||||
VfilePatternEx = (^|.*/)repodata/.*\.(yaml|yml)(\.gz|\.bz2|\.lzma|\.xz)?$
|
||||
Remap-centos: file:centos_mirrors /centos
|
||||
|
||||
#PassThroughPattern: .* # this would allow CONNECT to everything
|
||||
|
||||
```
|
||||
|
||||
### Client (installer)
|
||||
use http://mirror.centos.org/centos/8/BaseOS/x86_64/os/ as repo and set proxy to <ip>:<port>
|
||||
|
||||
### Client (DNF)
|
||||
make sure to set repos to use base url
|
||||
add folowing to /etc/dnf/dnf.conf
|
||||
```
|
||||
proxy=http://<ip>:<port>
|
||||
```
|
||||
Reference in New Issue
Block a user