我在Unicorn上,我需要安装PostgreSQL9.3服务器和客户端。当我尝试自动完成sudo apt-get install postgres时,我只看到9.4个包:
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版本?
发布于 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 mainwget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | \ sudo apt-key add -sudo apt-get update发布于 2014-11-06 07:40:10
来自PostgreSQL下载页面:
如果您的Ubuntu版本中包含的版本不是您想要的版本,您可以使用PostgreSQL Apt存储库。此存储库将与您的正常系统和修补程序管理集成,并在支持PostgreSQL的整个生命周期内为所有受支持的PostgreSQL版本提供自动更新。PostgreSQL apt存储库支持amd64和i386体系结构上Ubuntu10.04和12.04的LTS版本。虽然不完全支持,但通过使用最近可用的LTS版本,软件包通常也适用于非LTS版本。
要添加PostgreSQL存储库,请执行以下操作:
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。)
https://askubuntu.com/questions/546266
复制相似问题