Notice: This mirror is not publicly available anymore at the repository owners' request.
-
dblist.py
outputs a list of URLs for a given Arch repository. It takes three command line arguments:- Repository name (e.g.
repo-ck
) - Repository base URL (e.g.
http://repo-ck.com
) - Architecture (e.g.
x86_64
)
- Repository name (e.g.
-
clean.py
takes such a list and removes all packages that are not on that list from a directory.- Thus it removes old versions of packages from the mirror
-
Then
wget
(orcurl
) can be used to download all new packages using a command like this (assuming the output ofdblist.py
was saved to a file namedindex
):wget --input-file=index --directory-prefix=<output dir> --tries=inf --limit-rate=500k --no-verbose --no-clobber
When using this command you need to remove the
<repo-name>.db
file from the output directory first, so that it is always up to date. It is not removed byclean.py
;clean.py
only removes packages and package signatures.