From 69920e10f9442ccbd03384ef3d1bfbc7b3338223 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Mon, 29 May 2023 16:18:29 -0700 Subject: pp phone storage small, I decided to remove all pacman cache instead --- etc/systemd/system/paccache.service.d/10-remove-all.conf | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 etc/systemd/system/paccache.service.d/10-remove-all.conf (limited to 'etc/systemd/system/paccache.service.d/10-remove-all.conf') diff --git a/etc/systemd/system/paccache.service.d/10-remove-all.conf b/etc/systemd/system/paccache.service.d/10-remove-all.conf new file mode 100644 index 00000000..38d3c2d0 --- /dev/null +++ b/etc/systemd/system/paccache.service.d/10-remove-all.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 -- cgit v1.2.3-70-g09d2