How To Install owncloud-postgresql on CentOS 7

In this tutorial we learn how to install owncloud-postgresql on CentOS 7. owncloud-postgresql is PostgreSQL database support for ownCloud

Introduction

In this tutorial we learn how to install owncloud-postgresql on CentOS 7.

What is owncloud-postgresql

This package ensures the necessary dependencies are in place for ownCloud to work with a PostgreSQL database. It does not require the PostgreSQL server package to be installed, as you may well wish to use a remote database server. If you want the database to be on the same system as ownCloud itself, you must also install and enable the PostgreSQL server package. See README.postgresql for more details.

We can use yum or dnf to install owncloud-postgresql on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install owncloud-postgresql.

Install owncloud-postgresql on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install owncloud-postgresql using yum by running the following command:

sudo yum -y install owncloud-postgresql

Install owncloud-postgresql on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install owncloud-postgresql using dnf by running the following command:

sudo dnf -y install owncloud-postgresql

How To Uninstall owncloud-postgresql on CentOS 7

To uninstall only the owncloud-postgresql package we can use the following command:

sudo dnf remove owncloud-postgresql

References

Summary

In this tutorial we learn how to install owncloud-postgresql on CentOS 7 using yum and dnf.