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

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 Ubuntu operating system.

As has been stated earlier, recent PostgreSQL binaries might not yet be integrated with the official Debian and Ubuntu repositories. To setup PostgreSQL apt repository on Debian or Ubuntu one can 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 is good to upgrade your system as follows:

$sudo apt-get upgrade
主站蜘蛛池模板: 泰宁县| 三原县| 云南省| 陈巴尔虎旗| 汝南县| 嫩江县| 玉山县| 普陀区| 隆尧县| 拜城县| 湘阴县| 临城县| 阳江市| 宁安市| SHOW| 吉木萨尔县| 岚皋县| 会昌县| 茶陵县| 行唐县| 钟山县| 乃东县| 长海县| 洞头县| 上犹县| 永安市| 芜湖市| 额尔古纳市| 交口县| 平江县| 石狮市| SHOW| 右玉县| 子长县| 东安县| 菏泽市| 绩溪县| 正镶白旗| 高阳县| 罗甸县| 玉山县|