diff options
| author | Xiao Pan <xyz@flylightning.xyz> | 2025-12-24 18:05:11 +0800 |
|---|---|---|
| committer | Xiao Pan <xyz@flylightning.xyz> | 2025-12-24 18:05:11 +0800 |
| commit | f32e4cb64ec3bca313106e363d324559f5402232 (patch) | |
| tree | e7315b09d29ffee87d9bd128237bffbf80e15b81 /etc/systemd/system | |
| parent | 481d000f50239199389e4ef45d8fa644212eb463 (diff) | |
paccache manually specify large pkg files to remove
Diffstat (limited to 'etc/systemd/system')
| -rw-r--r-- | etc/systemd/system/paccache.service.d/20-remove-all-uninstalled-and-large.conf (renamed from etc/systemd/system/paccache.service.d/20-remove-all-uninstalled.conf) | 5 |
1 files changed, 4 insertions, 1 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-and-large.conf index 38d3c2d0..74e1005c 100644 --- a/etc/systemd/system/paccache.service.d/20-remove-all-uninstalled.conf +++ b/etc/systemd/system/paccache.service.d/20-remove-all-uninstalled-and-large.conf @@ -1,9 +1,12 @@ [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 +# maybe 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 +# cuda pkg file is 2.3 GiB, texlive-doc is 2.9 GiB, texlive-fontsextra is 640 +# MiB, they are too large so I decided to remove them +ExecStart=/usr/bin/paccache -rk0 cuda texlive-doc texlive-fontsextra |
