apt-get -yq purge postgresql-common shows interactive dialog - Mailing list pgsql-bugs

From Ruslan Mukhamedov
Subject apt-get -yq purge postgresql-common shows interactive dialog
Date
Msg-id BYAPR14MB277429F20080F80190937E80F97B0@BYAPR14MB2774.namprd14.prod.outlook.com
Whole thread Raw
List pgsql-bugs

Hi,

 

I’m running uninstall of postgres-common from a script that runs in a non-interactive SSH session.

export DEBIAN_FRONTEND=noninteractive

apt-get -yq purge postgresql-common

 

The uninstall ignores -yq apt-get options and DEBIAN_FRONTEND variable and shows the following dialog:

Package configuration

  ┌──────────────────────────────────────────┤ Configuring postgresql-12 ├───────────────────────────────────────────┐

  │                                                                                                                  │

  │ Removing the PostgreSQL server package will leave existing database clusters intact, i.e. their configuration,   │

  │ data, and log directories will not be removed. On purging the package, the directories can optionally be         │

  │ removed.                                                                                                         │

  │                                                                                                                  │

  │ Remove PostgreSQL directories when package is purged?                                                            │

  │                                                                                                                  │

  │                                 <Yes>                                    <No>                                    │

  │                                                                                                                  │

  └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

 

Please provide a way to suppress this dialog and pass a default selection via command line.

 

OS version: Ubuntu 18.04.4 LTS (GNU/Linux 5.3.0-1032-azure x86_64)

Postgres packages: postgresql-12_12.3-1.pgdg18.04+1_amd64.deb, postgresql-common_215.pgdg18.04+1_all.deb

 

Thanks.

 

Ruslan Mukhamedov
Senior Developer (R&D) @ Veeam Software

Department

R&D Backup, Data Protection

Office

Prague Office ArtGen, Czech Republic

Email

Ruslan.Mukhamedov@veeam.com

 

 

 

 

pgsql-bugs by date:

Previous
From: Francisco Olarte
Date:
Subject: Re: Improvement for query planner? (no, not about count(*) again ;-))
Next
From: Jehan-Guillaume de Rorthais
Date:
Subject: Re: Buffers from parallel workers not accumulated to upper nodes with gather merge