Houman Asked: 2016-05-01 10:16:13 +0800 CST2016-05-01 10:16:13 +0800 CST 2016-05-01 10:16:13 +0800 CST How to install postgresql-9.4 on Ubuntu 16.04? 772 Tried sudo apt-get install postgresql-9.4 but it doesn't find it. How can I install this version? 16.04 1 Answers Voted Best Answer Videonauth 2016-05-01T10:30:30+08:002016-05-01T10:30:30+08:00 Create the file /etc/apt/sources.list.d/pgdg.list, and add a line for the repository: deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main Import the repository signing key, and update the package lists: wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - sudo apt-get update Then do: sudo apt-get install postgresql-client-9.4 postgresql-9.4 postgresql-contrib-9.4 libpq-dev postgresql-server-dev-9.4 # pgAdmin III graphical administration utility sudo apt-get install pgadmin3
Create the file
/etc/apt/sources.list.d/pgdg.list
, and add a line for the repository:Import the repository signing key, and update the package lists:
Then do: