arch-sync
·121 words·1 min

I recently released the arch-sync repository, which provides a template for syncing packages and configuration files across multiple Arch Linux installations.
The motivation is simple – to maintain a consistent setup across multiple machines with minimal effort and simplify the overall management of the installations.
With this script, and the following workflow, I can maintain systems with a few simple commands:
$ yay # this runs yay -Syu by default
$ ./arch-sync.sh # the arch-sync script referenced above
$ yay -Sc # clears the pacman cache and locally cached files from the AUR
$ yay -Yc # removes unneeded dependencies
Regardless of how recently (or not) a system has been updated, the above commands ensure that all machines are in sync.