I think you can prevent it from being automatically removed using apt-mark. Manually installed packages should not be autoremoved.

https://www.computerhope.com/unix/apt-mark.htm

I've found it easier to reinstall in these cases.

Reply via email to