How To Install pagila on CentOS 7

In this tutorial we learn how to install pagila on CentOS 7. pagila is A sample database for PostgreSQL

Introduction

In this tutorial we learn how to install pagila on CentOS 7.

What is pagila

Pagila is a port of the Sakila example database available for MySQL, which was originally developed by Mike Hillyer of the MySQL AB documentation team. It is intended to provide a standard schema that can be used for examples in books, tutorials, articles, samples, etc.

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

Install pagila on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install pagila using yum by running the following command:

sudo yum -y install pagila

Install pagila 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 pagila using dnf by running the following command:

sudo dnf -y install pagila

How To Uninstall pagila on CentOS 7

To uninstall only the pagila package we can use the following command:

sudo dnf remove pagila

References

Summary

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