Users and groups created when installing some packages (avahi, usbmuxd) are not deleted along with its removal. Is it related to https://archlinux.org/todo/pacman-hooks-systemd-sysuserstmpfiles/ and requires some changes? Or should I always delete them manually?
Hello,
If you decide, that you no longer need a user or a group, you have to
manually delete it. This has to be a conscious decision, which is not
something pacman or packages can do.
I can’t locate authoritative information right now, but I believe the
linked TODO entry from 2017 was related to replacing manual invocations
of `systemd-tmpfiles` and `systemd-sysusers` with the corresponding
drop-in configuration files. See commits cd35d646⁽¹⁾ and 072e646d⁽²⁾ as
examples.
____
⁽¹⁾
https://gitlab.archlinux.org/archlinux/packaging/packages/apache/-/commit/cd35d646f87101351e1754e34661db971ac7de40
⁽²⁾
https://gitlab.archlinux.org/archlinux/packaging/packages/mariadb/-/commit/072e646ddc5e84eb054921b10083879f759a280f