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 如何在 Ubuntu 16.04 上安装 postgresql-9.4? 772 试过sudo apt-get install postgresql-9.4但没有找到。 我怎样才能安装这个版本? 16.04 1 个回答 Voted Best Answer Videonauth 2016-05-01T10:30:30+08:002016-05-01T10:30:30+08:00 创建文件/etc/apt/sources.list.d/pgdg.list,并为存储库添加一行: deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main 导入存储库签名密钥,并更新包列表: wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - sudo apt-get update 然后做: 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
创建文件
/etc/apt/sources.list.d/pgdg.list
,并为存储库添加一行:导入存储库签名密钥,并更新包列表:
然后做: