From dad13d0ec53f76f03a75f8c7f9b6a753cadaf9ba Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Wed, 14 Sep 2022 12:20:21 +0200 Subject: [PATCH] Automatically clear pacman cache using systemd --- root/usr/lib/systemd/system/paccache.timer | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 root/usr/lib/systemd/system/paccache.timer diff --git a/root/usr/lib/systemd/system/paccache.timer b/root/usr/lib/systemd/system/paccache.timer new file mode 100644 index 0000000..8423e18 --- /dev/null +++ b/root/usr/lib/systemd/system/paccache.timer @@ -0,0 +1,13 @@ +# Clean pacman cache of old and uninstalled packages every month +# This needs to be started by systemctl stat paccache.timer +# Usage requires pacman-contrib package to be installed + +[Unit] +Description=Clean-up old pacman pkg + +[Timer] +OnCalendar=monthly +Persistent=true + +[Install] +WantedBy=multi-user.target