use the apt (or other apt-driving) command: apt install postgresqlPostgreSQL Apt Repository If the version included in your version of Ubuntu is not the one you want, non-LTS) noble (24.04, Ubuntu"snapshots" a specific version of PostgreSQL that is then supported throughoutthe lifetime of that Ubuntu version.The PostgreSQL project maintains an with all supportedof PostgreSQL available. Included in Distribution Ubuntu includes PostgreSQL by default. To install PostgreSQL on Ubuntu, LTS) on the following architectures: amd64 arm64 (LTS releases only) ppc64el (LTS releases only) Automated Repository Configuration sudo apt install -y postgresql-commonsudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh Manual Repository Configuration Import the repository key: sudo apt install curl ca-certificatessudo install -d /usr/share/postgresql-common/pgdgsudo curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc Create /etc/apt/sources.list.d/pgdg.sources . The distributions are called codename -pgdg . In the example。
and provide automaticupdates for all supported versions of PostgreSQL throughout the supportlifetime of PostgreSQL. The PostgreSQL Apt repository supports the current versions of Ubuntu: resolute (26.04, replace resolute with the actual distribution you are using. File contents: Types: deb deb-srcURIs: https://apt.postgresql.org/pub/repos/aptSuites: resolute-pgdgArchitectures: amd64Components: mainSigned-By: /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc Install PostgreSQL: (replace "18" by the version you want) sudo apt updatesudo apt install postgresql-18 For more information about the apt repository, including answers to frequentquestions,you can use the PostgreSQL Apt Repository. This repository will integratewith your normal systems and patch management, LTS) jammy (22.04, LTS) questing (25.10, please see thePostgreSQL Apt Repository wiki page. Packages The repository contains many different packages including third partyaddons. The most common and important packages are (substitute theversion number as required): postgresql-client-18 client libraries and client binaries postgresql-18 core database server postgresql-doc-18 documentation libpq-dev libraries and headers for C language frontend development postgresql-server-dev-18 libraries and headers for C language backend development , Linux downloads (Ubuntu) PostgreSQL is available in all Ubuntu versions by default. However,。
郑重声明:本文版权归原作者所有,转载文章仅为传播更多信息之目的,如作者信息标记有误,请第一时间联系我们修改或删除,多谢。

