This document describes how to install PGroonga on Debian GNU/Linux.
Here are supported Debian GNU/Linux versions:
You can use the following instruction to install PGroonga on Debian GNU/Linux trixie.
Install groonga-apt-source package:
$ sudo apt install -y -V ca-certificates lsb-release wget
$ wget https://packages.groonga.org/debian/groonga-apt-source-latest-$(lsb_release --codename --short).deb
$ sudo apt install -y -V ./groonga-apt-source-latest-$(lsb_release --codename --short).deb
$ sudo apt update
If you want to use the PostgreSQL packages provided by PostgreSQL, you need to add the APT repository by PostgreSQL:
$ sudo apt install -y postgresql-common
$ sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y
Install postgresql-*-pgdg-pgroonga package:
$ sudo apt install -y -V postgresql-18-pgdg-pgroonga
Or
$ sudo apt install -y -V postgresql-17-pgdg-pgroonga
Or
$ sudo apt install -y -V postgresql-16-pgdg-pgroonga
Or
$ sudo apt install -y -V postgresql-15-pgdg-pgroonga
Or
$ sudo apt install -y -V postgresql-14-pgdg-pgroonga
Or
$ sudo apt install -y -V postgresql-13-pgdg-pgroonga
If you want to use MeCab based tokenizer, you also need to install groonga-tokenizer-mecab package:
$ sudo apt install -y -V groonga-tokenizer-mecab
If you want to use <&@*> operator or &@* operator for semantic search, you also need to install groonga-plugin-language-model package:
$ sudo apt install -y -V groonga-plugin-language-model
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'
On bookworm, follow the same installation procedure as trixie. Please refer to trixie.
That's all!
Try tutorial. You can understand more about PGroonga.