A parallel replacement for apt-mirror
docker build -t mirrorly .
mkdir </path/to/mirror>
docker run --rm -v </path/to/mirror>:/mirror mirrorly
mkdir </path/to/mirror>
docker run --rm -v </path/to/mirror>:/mirror -v </path/to/mirrorly.conf>:/etc/mirrorly.conf -v </path/to/mirror.list>:/etc/apt/mirror.list mirrorly
- Copy mirrorly.conf to
/etc
- Copy mirror.list to
/etc/apt
- Run
mirrorly
- Collect repos from mirror.list
- Download Packages.gz from mirror
- Assemble list of sizes/urls/paths and md5sums
- Check which files are already present on disk
- Make a list of files that are not present on disk
- Download needed files via curl+parallel
- Download needed things in dist
- Make a list of files that are not present in Packages.gz
- Remove unneeded files on disk