The PostgreSQL repository includes information for all available PostgreSQL releases. When given the prompt, confirm the installation with y. Now, install a repository configuration package using the official PostgreSQL repository for CentOS: $ sudo yum install Mirrorlist=$releasever&arch=$basearch&repo=updates&infra=$infra Gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 Mirrorlist=$releasever&arch=$basearch&repo=os&infra=$infra As a result, the file will look like the following, with new lines highlighted. $ sudo vi /etc//CentOS-Base.repoįind the and sections, and insert the exclude=postgresql* line in both sections. Open the repository configuration file using any text editor. Otherwise, dependencies might resolve to the postgresql supplied by the base repository. Here, initially, we need to exclude the search for postgresql packages from the CentOS-Base repository. Therefore, we can use the official Postgres repository. Sometimes, the version that is available in the CentOS 7 Base repository is obsolete. Optionally, we can also configure PostgreSQL to start on boot with the command below: $ sudo systemctl enable postgresql Install PostgreSQL on Centos from Postgres repository Now, initialize your Postgres database and start PostgreSQL: $ sudo postgresql-setup initdb To install from the Centos repositories, simply run: $ sudo yum install postgresql-server postgresql-contrib Postgres can be installed using default Centos repositories. Let us today discuss the steps to Install PostgreSQL on Centos. Webmasters can perform the install of PostgreSQL on Centos either from the default Centos repositories or from the Postgres repositories.Īs a part of our Server Management Services, we help our Customers with software installations regularly.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |