![]() sudo systemctl start postgresql & sudo systemctl enable postgresql Managing the PostgreSQL serviceĪfter installation, you need to start and enable the PostgreSQL service for an automatic start after the system reboot. To install the PostgreSQL 15 version, execute the following command: sudo apt-get install postgresql-15 -y Step 5. ![]() You should receive the following output: sh -c 'echo "deb $(lsb_release -cs)-pgdg main" > wget -quiet -O - | sudo apt-key add -Įverything is ready for installation, but first, we need to update the packages after the repo and key insertion: sudo apt-get update -y Once the repo is added next is to add the GPG Key: wget -quiet -O - | sudo apt-key add. Since we need the latest PostgreSQL 15 we need first to add the repository: sh -c 'echo "deb $(lsb_release -cs)-pgdg main" > /etc/apt//pgdg.list' In the default Debian repository, the available version of PostgreSQL is version 13. To install the PostgreSQL required dependencies execute the following command: sudo apt-get install gnupg2 wget curl -y Step 3. sudo apt-get update -y & sudo apt-get upgrade -y Step 2. User privileges: root or non-root user with sudo privilegesīefore we start with the installation of PostgreSQL, we will update the system packages to the latest versions available.
0 Comments
Leave a Reply. |