![]() ![]() ![]() Now, before starting and enabling the service of the Database, let’s initialize it. We have followed all the necessary steps so far to have a working PostgreSQL Database on our Linux system. sudo yum install postgresql14 postgresql14-server Step 4: Initialize the Database sudo yum update Step 3: Installing Postgresql 14 on Amazon Linux 2Īfter adding the repo and updating the package repository, we can install the PostgreSQL package and its dependencies on Amazon Linux like any other software via YUM. Name=PostgreSQL 14 for RHEL/CentOS 7 - x86_64Īfter adding the repo, run the system update command, once again. Therefore, those who are interested in Postgresql 14 need to add the PGDG14 repo manually using the command given below:Ĭopy whole block of the given command and paste it as it is: sudo tee /etc//pgdg.repo<<EOF But the v ersion available using it is PostgreSQL 9, which is quite old. ![]() Because it is available through the default system repository. We don’t need to add an extra Yum repository on Amazon Linux 2 to install PostgreSQL. sudo yum update Step 2: Adding Postgresql 14 Yum repository This will ensure we have the latest packages and up-to-date repository cache. ![]() Therefore, in your command terminal use the Yum and run the system update command. The first step in direction of installing PostgreSQL on Amazon Linux 2 is to make sure our server is up to date.
0 Comments
Leave a Reply. |