summaryrefslogtreecommitdiff
path: root/etc/systemd
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2023-10-25 08:52:41 +0000
committerXiao Pan <gky44px1999@gmail.com>2023-10-25 08:52:41 +0000
commitfe65a913b440f529c831f172486103feadcdfb94 (patch)
treefcb18ad2460b6d1f4163beecc7363705f9fd6d6b /etc/systemd
parentca118323ae9ae29468ce485f8ad230cbf0366bd1 (diff)
new files
Diffstat (limited to 'etc/systemd')
-rw-r--r--etc/systemd/system/paccache.service.d/20-remove-all-uninstalled.conf9
1 files changed, 9 insertions, 0 deletions
diff --git a/etc/systemd/system/paccache.service.d/20-remove-all-uninstalled.conf b/etc/systemd/system/paccache.service.d/20-remove-all-uninstalled.conf
new file mode 100644
index 00000000..38d3c2d0
--- /dev/null
+++ b/etc/systemd/system/paccache.service.d/20-remove-all-uninstalled.conf
@@ -0,0 +1,9 @@
+[Service]
+# keep original `ExecStart=/usr/bin/paccache -r` while adding to the list
+# because I want the default behavior and also remove all uninstalled pacman package cache
+# may need `sudo systemctl daemon-reload` afterward
+# if I want to clear the list first, I should do a line of `ExecStart=` first
+# more about drop-in dir see `man systemd.unit`, more about ExecStart see `man systemd.service`
+# https://wiki.archlinux.org/title/Systemd#Drop-in_files
+# https://wiki.archlinux.org/title/Systemd#Examples
+ExecStart=/usr/bin/paccache -ruk0