initdb

Create a PostgreSQL database on disk. More information: <https://www.postgresql.org/docs/9.5/app-initdb.html>.

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