官术网_书友最值得收藏!

Installing PostgreSQL using Advanced Package Tool

Advanced Package Tool (APT) is used to handle the installation and removal of software on Debian and Debian-based distributions, such as the Ubuntu operating system.

As stated earlier, recent PostgreSQL binaries might not yet be integrated with the official Debian and Ubuntu repositories. To set up the PostgreSQL apt repository on Debian or Ubuntu, execute the following:

sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
wget --quiet -O - https://www.PostgreSQL.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update

After adding a new apt repository, it's good to upgrade your system as follows:

sudo apt-get upgrade
主站蜘蛛池模板: 剑川县| 田阳县| 伽师县| 宜丰县| 锦屏县| 木里| 柞水县| 景谷| 黄大仙区| 贡山| 邓州市| 霸州市| 河西区| 云龙县| 高唐县| 陵水| 莱阳市| 金塔县| 高碑店市| 黄浦区| 白玉县| 洪雅县| 长宁县| 诸暨市| 克什克腾旗| 剑河县| 肃南| 乐昌市| 西乌| 高密市| 成武县| 吴旗县| 神池县| 肥乡县| 安顺市| 高尔夫| 加查县| 二连浩特市| 如皋市| 呈贡县| 得荣县|