Mario E. Weisz
2020-01-12 17:50:02 UTC
Note: This was attempted on *fresh* Debian and Ubuntu installations.
$ apt install postgresql-11
$ apt purge postgresql-11
$ apt autoremove
leaves these packages behind:
I checked the dependents using "apt rdepends $package"
postgresql-client-11: no dependents
postgresql-client-common: postgresql-client-11, postgresql-common
It makes no sense that "postgresql-client-11" was not removed. It's an automatic package with no dependents. (aptitude removes it automatically).
As for "postgresql-common" becoming a dependency for "logrotate", it doesn't make sense to me either, but I don't know if it's a bug or not.
I contacted a Postgres package maintainer and he believes APT is to blame here.