- Learning PostgreSQL 11
- Salahaldin Juba Andrey Volkov
- 106字
- 2021-07-02 13:11:45
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
推薦閱讀
- 數(shù)據(jù)庫(kù)系統(tǒng)原理及MySQL應(yīng)用教程(第2版)
- C++面向?qū)ο蟪绦蛟O(shè)計(jì)(第三版)
- 大學(xué)計(jì)算機(jī)應(yīng)用基礎(chǔ)實(shí)踐教程
- 程序員面試筆試寶典
- FreeSWITCH 1.6 Cookbook
- Python數(shù)據(jù)分析(第2版)
- Learning Apache Mahout Classification
- 運(yùn)用后端技術(shù)處理業(yè)務(wù)邏輯(藍(lán)橋杯軟件大賽培訓(xùn)教材-Java方向)
- Android應(yīng)用案例開(kāi)發(fā)大全(第二版)
- Python全棧數(shù)據(jù)工程師養(yǎng)成攻略(視頻講解版)
- Mobile Device Exploitation Cookbook
- Python程序設(shè)計(jì)與算法基礎(chǔ)教程(第2版)(微課版)
- Couchbase Essentials
- Python Data Science Cookbook
- Python機(jī)器學(xué)習(xí)算法與應(yīng)用