I want to install PostgreSQL 9.5. But the available version is 9.6.
I only need 9.5 to build
wal2json against it and test it (requirement because of AWS version).
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
The last supported release that includes postgresql-9.5 in its default repositories is Ubuntu 16.04. Manually download the following two files from the official Ubuntu website:
The two .deb files have been updated to postgresql-client-9.5_9.5.14-0ubuntu0.16.04_amd64.deb and postgresql-9.5_9.5.14-0ubuntu0.16.04_amd64.deb.
Change directories using
cd to the directory containing the two .deb files that you downloaded. Run the following commands:
sudo apt install libedit2 libpq5 libssl1.0.0 postgresql-client-common zlib1g libgssapi-krb5-2 libldap-2.4-2 libpam0g libxml2 postgresql-common locales ssl-cert tzdata sysstat sudo dpkg -i postgresql-client-9.5_9.5.12-0ubuntu0.16.04_amd64.deb postgresql-9.5_9.5.12-0ubuntu0.16.04_amd64.deb