В Вс, 12/01/2020 в 22:06 +0000, Mario E. Weisz пишет: > $ apt rdepends postgresql-client-11 --installed > > returns nothing (empty result). > > The install/remove/autoremove sequence was executed right after a > fresh installation. >
postgresql-common installs the following configuration snippet to /etc/apt/apt.conf.d/01autoremove-postgresql: // File installed by postgresql-common. Currently not updated automatically, // but might be in future releases. // // We mark all PostgreSQL packages as NeverAutoRemove because otherwise apt // would remove the old postgresql-NN package when the "postgresql" meta // package changes its dependencies to a new version, rendering the old // database cluster inaccessible. As access to the cluster might depend on // other modules (like datatypes), we use a pretty wide pattern here. We might // tighten this to match only actually used PostgreSQL versions in the future. APT { NeverAutoRemove { "^postgresql-"; }; }; I guess, this answers your question. It's obvious that APT is not in fault here and behaves exactly as it's supposed to.