This feature already exists. apt will refuse to remove any package tagged as essential. However, systemd isn't considered to be essential system critical as it can be swapped out. It may break various other packages but the system will (mostly) run and is recoverable. Complain to the Debian systemd packaging team if you don't agree.I can accept that, but would also suggest package installers should support some means of mitigating things when the packager hasn't.
Code:
$ sudo apt remove dashReading package lists... DoneBuilding dependency tree... DoneReading state information... DoneThe following packages will be REMOVED: dashWARNING: The following essential packages will be removed.This should NOT be done unless you know exactly what you are doing! dash0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.After this operation, 204 kB disk space will be freed.E: Removing essential system-critical packages is not permitted. This might break the system.
Only if they're running an old Buster install. Anybody with Bullseye or newer won't be affected.At least I now know what to suggest - to those Linux users I might want to cause grief to - to try if they ever ask
Statistics: Posted by trejan — Wed May 29, 2024 8:11 pm