如何为 Ubuntu 18.04 升级到 PostgreSQL 11? [英] How to upgrade to PostgreSQL 11 for Ubuntu 18.04?

查看:112
本文介绍了如何为 Ubuntu 18.04 升级到 PostgreSQL 11?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

正如标题所示,我想将我的 postgresql-10 升级到 postgresql-11.

As the title suggests I want to upgrade my postgresql-10 to postgresql-11.

我正在使用 ubuntu-18.04.

推荐答案

您可以关注此博客 在 Ubuntu 上设置 Postgresql-11.我发现这很简单.

You can follow this blog setup Postgresql-11 on Ubuntu. I found it easy and simple.

在你的 Ubuntu 机器上添加 PostgreSQL 包存储库

Add the PostgreSQL package repository on your Ubuntu machine

echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main 11" | sudo tee /etc/apt/sources.list.d/pgsql.list

添加PostgreSQL包仓库的GPG密钥:

Add the GPG key of the PostgreSQL package repository:

wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -

更新 APT 并安装 postgresql-11

Update APT and install postgresql-11

sudo apt update && sudo apt install postgresql-11

这篇关于如何为 Ubuntu 18.04 升级到 PostgreSQL 11?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆