Install on CentOS

This document describes how to install PGroonga on CentOS.

Supported versions

Here are supported CentOS versions:

How to install on CentOS 7

You can use the following instruction to install PGroonga on CentOS 7.

Install postgresql15-pgdg-pgroonga package:

$ sudo -H yum install -y$(rpm -qf --queryformat="%{ARCH}" /etc/redhat-release)/pgdg-redhat-repo-latest.noarch.rpm
$ sudo -H yum install -y
$ sudo -H yum install -y postgresql15-pgdg-pgroonga

If you want to use MeCab based tokenizer, you also need to install groonga-tokenizer-mecab package:

$ sudo -H yum install -y groonga-tokenizer-mecab

Run PostgreSQL:

$ sudo -H /usr/pgsql-15/bin/postgresql-15-setup initdb
$ sudo -H systemctl enable --now postgresql-15

Create a database:

$ sudo -u postgres -H psql --command 'CREATE DATABASE pgroonga_test'

(Normally, you should create a user for pgroonga_test database and use the user. See GRANT USAGE ON SCHEMA pgroonga for details.)

Connect to the created database and execute CREATE EXTENSION pgroonga:

$ sudo -u postgres -H psql -d pgroonga_test --command 'CREATE EXTENSION pgroonga'

That's all!

Try tutorial. You can understand more about PGroonga.