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

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
主站蜘蛛池模板: 浦江县| 南开区| 锦州市| 金华市| 霸州市| 田林县| 通辽市| 涞水县| 浏阳市| 河西区| 名山县| 敖汉旗| 沛县| 拉萨市| 海城市| 江津市| 新源县| 娄烦县| 祁阳县| 宣威市| 吴江市| 盘山县| 故城县| 深水埗区| 汾西县| 汾阳市| 四平市| 湖口县| 新干县| 中牟县| 宜黄县| 肇东市| 临颍县| 连州市| 灵山县| 扎鲁特旗| 建湖县| 怀来县| 大厂| 韶关市| 漾濞|