Le 27/01/2025 à 17:39, Patrice Duroux a écrit :
Hi,
I do not know if this is something already addressed (elsewhere or in
Trixie), a package issue or something more general.
On a bookworm system, removing systemd-timesyncd is leaving a broken
symlink (/etc/systemd/system/dbus-org.freedesktop.timesync1.service).
On this system, systemd-timesyncd.postrm is showing the following:
# Automatically added by dh_installsystemd/13.11.4
if [ "$1" = "purge" ]; then
if [ -x "/usr/bin/deb-systemd-helper" ]; then
deb-systemd-helper purge 'systemd-timesyncd.service' >/dev/null || true
fi
fi
# End automatically added section
But should this treatment be done only in the 'purge' case?
Ie.is there a purpose to keep the systemd service link in addition to
the configuration files?
Regards,
Patrice
Hello,
I would say this is not specific to this package but illustrative of how
apt operates?
didier@hp-notebook14:~$ LANG=en-US.UTF-8; man apt
[...]
Removing a package removes all packaged data, but leaves usually
small (modified) user configuration files behind, in case the
remove was an accident. Just issuing an installation request for
the accidentally removed package will restore its function as
before in that case. On the other hand you can get rid of these
leftovers by calling purge even on already removed packages. Note
that this does not affect any data or configuration stored in your
home directory.
[...]