Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung | Nächste ÜberarbeitungBeide Seiten, nächste Überarbeitung |
server_und_serverdienste:apt-mirror_mit_ubuntu_20.04 [2021/02/18 22:30] – loma | server_und_serverdienste:apt-mirror_mit_ubuntu_20.04 [2021/02/27 15:09] – loma |
---|
apt-mirror | apt-mirror |
| |
cd /package-mirror/tmp | |
for p in "${1:-focal}"{,-{security,updates}}\ | |
/{main,restricted,universe,multiverse};do >&2 echo "${p}" | |
wget -q -c -r -np -R "index.html*"\ | |
"http://archive.ubuntu.com/ubuntu/dists/${p}/cnf/Commands-amd64.xz" | |
wget -q -c -r -np -R "index.html*"\ | |
"http://archive.ubuntu.com/ubuntu/dists/${p}/cnf/Commands-i386.xz" | |
done | |
| |
cp -a archive.ubuntu.com /package-mirror/mirror/. | /package-mirror/var/clean.sh |
| |
cd /package-mirror/mirror/apt.puppetlabs.com | cd /package-mirror/mirror/apt.puppetlabs.com |
cd i18n | cd i18n |
wget http://security.debian.org/debian-security/dists/buster/updates/main/i18n/Translation-en.xz | wget http://security.debian.org/debian-security/dists/buster/updates/main/i18n/Translation-en.xz |
</code> | |
| |
| #cd /package-mirror/mirror/archive.ubuntu.com/ubuntu/dists/focal-security |
| cd /package-mirror/mirror/archive.ubuntu.com |
| wget -nH -np --recursive http://archive.ubuntu.com/ubuntu/dists/focal-security/main/cnf/ |
| wget -nH -np --recursive http://archive.ubuntu.com/ubuntu/dists/focal-security/multiverse/cnf/ |
| wget -nH -np --recursive http://archive.ubuntu.com/ubuntu/dists/focal-security/restricted/cnf/ |
| wget -nH -np --recursive http://archive.ubuntu.com/ubuntu/dists/focal-security/universe/cnf/ |
| |
| wget -nH -np --recursive http://archive.ubuntu.com/ubuntu/dists/focal-updates/main/cnf/ |
| wget -nH -np --recursive http://archive.ubuntu.com/ubuntu/dists/focal-updates/multiverse/cnf/ |
| wget -nH -np --recursive http://archive.ubuntu.com/ubuntu/dists/focal-updates/restricted/cnf/ |
| wget -nH -np --recursive http://archive.ubuntu.com/ubuntu/dists/focal-updates/universe/cnf/ |
| |
| </file> |
<code> | <code> |
chmod +x /usr/local/bin/apt-mirror-executes | chmod +x /usr/local/bin/apt-mirror-executes |