diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2024-04-09 01:21:12 -0700 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2024-04-09 01:21:12 -0700 |
commit | 3ad044bd524482662af6d3200f32e8afeab6b293 (patch) | |
tree | 1a35bf7467a55a675d31c3c4d37ac9241e83ea2e /etc | |
parent | c1353941ac428bf14e2a612a3a76d5c5d9cb43f0 (diff) |
new ca no need save storage, paccache can delete less
Diffstat (limited to 'etc')
-rw-r--r-- | etc/systemd/system/paccache.service.d/10-remove-all.conf | 8 | ||||
-rw-r--r-- | etc/systemd/system/paccache.service.d/20-remove-all-uninstalled.conf | 9 |
2 files changed, 9 insertions, 8 deletions
diff --git a/etc/systemd/system/paccache.service.d/10-remove-all.conf b/etc/systemd/system/paccache.service.d/10-remove-all.conf deleted file mode 100644 index a33a36a2..00000000 --- a/etc/systemd/system/paccache.service.d/10-remove-all.conf +++ /dev/null @@ -1,8 +0,0 @@ -[Service] -# may need `sudo systemctl daemon-reload` afterward -# need a line of `ExecStart=` to clear the list 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= -ExecStart=/usr/bin/paccache -rk0 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 |