/etc/apt/apt.conf.d/01autoremove-postgresql - Debian GNU/Linux 9 (stretch)

This is the default example configuration of 01autoremove-postgresql provided by PostgreSQL. This config file was generated by PostgreSQL running on Debian 9.

It is located under: /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-x.y 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-";
  };
};

    
  

Config Details

Location
/etc/apt/apt.conf.d/01autoremove-postgresql
Operating system
Debian GNU/Linux 9 (stretch)
Length
17 lines
MD5 checksum
498d99dc4a8eaf6b4f863a7d7623bdb5

Usage

Download the raw file with wget or curl

Wget

wget -O 01autoremove-postgresql.example http://exampleconfig.com/static/raw/postgresql/debian9/etc/apt/apt.conf.d/01autoremove-postgresql

cURL

curl http://exampleconfig.com/static/raw/postgresql/debian9/etc/apt/apt.conf.d/01autoremove-postgresql > 01autoremove-postgresql.example