Package Proxy Cache
If you want to install the same Arch packages over and over - like for testing AIF profiles - it could help if you wouldn't have to get the packages every time from the internet. This article shows you how to setup a Squid proxy that only caches arch packages and can be used with aif/pacman/wget/etc with minimal configuration on the client system.
This is the minimum configuration to get squid cache arch packages.
Before defining these rules, remove/comment (if you don't need them) all the default refresh_patterns Template:File That should define that *.pkg.tar.* gets cached, and anything else should not.
Objects larger than this size will NOT be saved on disk: Template:File
Set the cache dir and its maximum size and subdirs: Template:File
Follow Squid access log
Manual Arch Install
Before running /arch/setup, add variables for your proxy. To do so, run on the console: Template:Cli
Now just use /arch/setup to normally install the system, and it should use your proxy. Watch the squid logs to verify this.
Automatic Arch Install
After login in the arch install image, setup your network (eg. `dhcpcd eth0`) and get this AIF profile on it.
After the setup is done, the installed system should use your proxy for pacman/wget/etc.