2024-04-09 14:30:10 +02:00
|
|
|
# mirrord
|
2024-04-10 11:41:36 +02:00
|
|
|
mirrord is a local http mirror. It redirects every request it gets to mirror hosts and caches the response locally.
|
|
|
|
|
|
|
|
## Using with pacman
|
|
|
|
Configure mirrord to act as a pacman mirror:
|
|
|
|
```toml
|
|
|
|
mirrors = [
|
|
|
|
"https://mirror.leaseweb.net",
|
|
|
|
"https://archlinux.thaller.ws",
|
|
|
|
...
|
|
|
|
]
|
|
|
|
|
|
|
|
cache_dir = "./data"
|
|
|
|
no_cache = '.*(?:db|db\.sig)$'
|
2024-04-16 16:26:18 +02:00
|
|
|
only_allow = '^\/archlinux'
|
2024-04-10 11:41:36 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
Add this to your mirrorlist:
|
|
|
|
```
|
|
|
|
Server = http://<mirrord_host>:8080/archlinux/$repo/os/$arch
|
|
|
|
```
|