http://askubuntu.com/questions/633919/how-install-postgresql-9-4
This command installs the recent version for your distribution:
sudo apt-get install postgresql
postgresql-9.4
is available since utopic.
Here is a step by step guide to install Postgesql 9.4 for your Ubuntu (utopic,Trusty,Precise,Lucid) version.
sudo add-apt-repository "deb https://apt.postgresql.org/pub/repos/apt YOUR_UBUNTU_VERSION_HERE-pgdg main"
For trusty:
sudo add-apt-repository "deb https://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main"
To get your ubuntu version:
lsb_release -sc
Now import the public key and install:
wget --quiet -O - https://postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - sudo apt-get update sudo apt-get install postgresql-9.4
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。