I use these files to keep my package manager metadata up to date.
pacman-update
automatically downloads package updates so that I don’t have to wait for the download when I actually go to upgrade the system,
pacman-mirrorlist-update
makes sure that the mirror list is not too outdated,
and the tmpfiles.d
configuration makes sure that all the updates downloaded by pacman-update
(which may include many intermediate versions if I don’t upgrade for a while)
don’t stay around forever.
To set up these files,
copy the .service
and .timer
files into /etc/systemd/system/
,
and the pacman.conf
file into /etc/tmpfiles.d/
.
Then, run systemctl enable --now pacman-update.timer pacman-mirrorlist-update.timer
.