PostgreSQL 01autoremove-postgresql configuration example for Ubuntu 20.04 LTS (Focal Fossa)

Get the default configuration file 01autoremove-postgresql for PostgreSQL, optimized for Ubuntu 20.04 LTS (Focal Fossa). This example configuration ensures optimal compatibility and performance for PostgreSQL, making it easy to set up and adjust to meet your needs.

Find and download the configuration file here: /etc/apt/apt.conf.d/01autoremove-postgresql.

For more configurations and setup guides, visit our related files section to further customize your system.

    // 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-";
  };
};

    
  

Config Details

Location
/etc/apt/apt.conf.d/01autoremove-postgresql
Operating system
Ubuntu 20.04 LTS (Focal Fossa)
Length
17 lines
MD5 checksum
ce792928ef7a41f68842bb9380ddcc48

Usage

Download the raw file with wget or curl

Wget

wget -O 01autoremove-postgresql.example https://exampleconfig.com/static/raw/postgresql/ubuntu20.04/etc/apt/apt.conf.d/01autoremove-postgresql

cURL

curl https://exampleconfig.com/static/raw/postgresql/ubuntu20.04/etc/apt/apt.conf.d/01autoremove-postgresql > 01autoremove-postgresql.example