Linux/apt: Difference between revisions
< Linux
mNo edit summary |
mNo edit summary |
||
Line 10: | Line 10: | ||
curl -s http://mirrors.ubuntu.com/DE.txt | xargs -n1 -I {} sh -c 'echo `curl -r 0-1024000 -s -w %{speed_download} -o /dev/null {}/ls-lR.gz` {}' |sort -gr | curl -s http://mirrors.ubuntu.com/DE.txt | xargs -n1 -I {} sh -c 'echo `curl -r 0-1024000 -s -w %{speed_download} -o /dev/null {}/ls-lR.gz` {}' |sort -gr | ||
</pre> | |||
== apt cacher with docker == | |||
* docker-compose.yml | |||
<pre> | |||
version: '3' | |||
services: | |||
aptcacher: | |||
image: sameersbn/apt-cacher-ng | |||
restart: always | |||
container_name: aptcacher | |||
ports: | |||
- "3142:3142" | |||
volumes: | |||
- /srv/docker-data/aptcacher:/var/cache/apt-cacher-ng | |||
</pre> | |||
* touch /etc/apt/apt.conf.d/00aptproxy | |||
<pre> | |||
Acquire::http::Proxy "http://192.168.111.11:3142"; | |||
</pre> | </pre> | ||
Revision as of 17:47, 8 December 2021
unattended upgrades
apt install unattended-upgrades dpkg-reconfigure --priority=low unattended-upgrades
compare mirrors
http://mirrors.ubuntu.com/DE.txt curl -s http://mirrors.ubuntu.com/DE.txt | xargs -n1 -I {} sh -c 'echo `curl -r 0-1024000 -s -w %{speed_download} -o /dev/null {}/ls-lR.gz` {}' |sort -gr
apt cacher with docker
- docker-compose.yml
version: '3' services: aptcacher: image: sameersbn/apt-cacher-ng restart: always container_name: aptcacher ports: - "3142:3142" volumes: - /srv/docker-data/aptcacher:/var/cache/apt-cacher-ng
- touch /etc/apt/apt.conf.d/00aptproxy
Acquire::http::Proxy "http://192.168.111.11:3142";