summaryrefslogtreecommitdiff
path: root/etc/systemd/system/paccache.service.d/20-remove-all-uninstalled-and-large.conf
blob: 74e1005c1596f20868f84159c4921d3f73e88451 (plain)
1
2
3
4
5
6
7
8
9
10
11
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
# 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