Skip to content

Pacman

You can cache Arch Linux pacman packages with webarc. Just add this to /etc/pacman.conf:

# /etc/pacman.conf
XferCommand = /usr/bin/curl -x http://proxy.com:3000 -L -C - -f -o %o %u

As default refetch configuration is rather conservative, you might add the following config for all your mirror URLs:

# Package Mirror
- domain: "geo.mirror.pkgbuild.com"
  global:
    outdated: "10d"
    keep_n: 3

  path_match:
    # Refetch package indexes every 2min
    - path: "\\.db(\\.sig)?$"
      apply:
        always_fetch: true
        outdated: "2min"
        keep_n: 10