首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在Ubuntu14.10中安装PostgreSQL9.3而不是默认的9.4?

如何在Ubuntu14.10中安装PostgreSQL9.3而不是默认的9.4?
EN

Ask Ubuntu用户
提问于 2014-11-06 07:36:25
回答 2查看 25.9K关注 0票数 2

我在Unicorn上,我需要安装PostgreSQL9.3服务器和客户端。当我尝试自动完成sudo apt-get install postgres时,我只看到9.4个包:

代码语言:javascript
复制
postgresql                          postgresql-autodoc
postgresql-9.4                      postgresql-client
postgresql-9.4-asn1oid              postgresql-client-9.4
postgresql-9.4-dbg                  postgresql-client-common
postgresql-9.4-debversion           postgresql-common
postgresql-9.4-ip4r                 postgresql-comparator
postgresql-9.4-orafce               postgresql-contrib
postgresql-9.4-pgespresso           postgresql-contrib-9.4
postgresql-9.4-pgextwlist           postgresql-doc
postgresql-9.4-pgfincore            postgresql-doc-9.4
postgresql-9.4-pgmemcache           postgresql-filedump
postgresql-9.4-pgmp                 postgresql-hll
postgresql-9.4-pgpool2              postgresql-plperl-9.4
postgresql-9.4-pgq3                 postgresql-plpython3-9.4
postgresql-9.4-pgrouting            postgresql-plpython-9.4
postgresql-9.4-pgrouting-doc        postgresql-pltcl-9.4
postgresql-9.4-pllua                postgresql-prioritize
postgresql-9.4-plproxy              postgresql-server-dev-9.4
postgresql-9.4-plr                  postgresql-server-dev-all
postgresql-9.4-plsh                 postgres-xc
postgresql-9.4-plv8                 postgres-xc-client
postgresql-9.4-postgis-2.1          postgres-xc-contrib
postgresql-9.4-postgis-2.1-scripts  postgres-xc-dbg
postgresql-9.4-postgis-scripts      postgres-xc-doc
postgresql-9.4-prefix               postgres-xc-plperl
postgresql-9.4-preprepare           postgres-xc-plpython
postgresql-9.4-repmgr               postgres-xc-pltcl
postgresql-9.4-slony1-2             postgres-xc-server-dev

如何安装它们的9.3版本?

EN

回答 2

Ask Ubuntu用户

回答已采纳

发布于 2014-11-06 07:40:46

添加官方postgres PPA / Apt回购。它为所有受支持的版本提供了包。

请参阅:http://www.postgresql.org/download/linux/ubuntu/

  • 创建文件/etc/apt/sources.list.d/pgdg.list,并为存储库添加一行
    • deb http://apt.postgresql.org/pub/repos/apt/ utopic-pgdg main

  • 导入存储库签名密钥,并更新包列表
    • wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | \ sudo apt-key add -
    • sudo apt-get update
票数 5
EN

Ask Ubuntu用户

发布于 2014-11-06 07:40:10

来自PostgreSQL下载页面

如果您的Ubuntu版本中包含的版本不是您想要的版本,您可以使用PostgreSQL Apt存储库。此存储库将与您的正常系统和修补程序管理集成,并在支持PostgreSQL的整个生命周期内为所有受支持的PostgreSQL版本提供自动更新。PostgreSQL apt存储库支持amd64和i386体系结构上Ubuntu10.04和12.04的LTS版本。虽然不完全支持,但通过使用最近可用的LTS版本,软件包通常也适用于非LTS版本。

要添加PostgreSQL存储库,请执行以下操作:

代码语言:javascript
复制
sudo tee /etc/apt/sources.list.d/pgdg.list <<EOF
deb http://apt.postgresql.org/pub/repos/apt/ utopic-pgdg main
EOF
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update

(是的,尽管看上去他们确实支持14.10。)

票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/546266

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档