pg_dump

Extract a PostgreSQL database into a script file or other archive file. More information: <https://www.postgresql.org/docs/current/app-pgdump.html>.

Debian Debian
RUN apt-get update && \ apt-get install -y postgresql-client-9.1
Ubuntu
RUN apt-get update && \ apt-get install -y postgresql-client-9.3
Alpine
RUN apk add postgresql
Arch Arch Linux
RUN pacman -S --noconfirm postgresql-old-upgrade
image/svg+xml Kali Linux
RUN apt-get update && \ apt-get install -y postgresql-client-11
CentOS
RUN yum install -y postgresql
Fedora
RUN dnf install -y postgresql
Raspbian
RUN apt-get update && \ apt-get install -y postgresql-client-9.5
click the source code to copy install pg_dump on any operating system with command-not-found.com