2.3. Debian GNU/Linux

このセクションではDebian GNU/Linux上でMroonga関連のdebパッケージをインストールする方法を説明します。これらのパッケージは apt でインストールできます。

2.3.1. bookworm (MariaDB)

インストール:

% sudo apt update
% sudo apt install -y -V apt-transport-https
% sudo apt install -y -V wget
% wget https://apache.jfrog.io/artifactory/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb
% sudo apt install -y -V ./apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb
% wget https://packages.groonga.org/debian/groonga-apt-source-latest-bookworm.deb
% sudo apt install -y -V ./groonga-apt-source-latest-bookworm.deb
% sudo apt update
% sudo apt install -y -V mariadb-10.11-mroonga

トークナイザーとして MeCab を利用したい場合はgroonga-tokenizer-mecabをインストールしてください。

groonga-tokenizer-mecabをインストール:

% sudo apt install -y -V groonga-tokenizer-mecab

2.3.2. bullseye (MariaDB)

インストール:

% sudo apt update
% sudo apt install -y -V apt-transport-https
% sudo apt install -y -V wget
% wget https://packages.groonga.org/debian/groonga-apt-source-latest-bullseye.deb
% sudo apt install -y -V ./groonga-apt-source-latest-bullseye.deb
% sudo apt update
% sudo apt install -y -V mariadb-server-10.5-mroonga

トークナイザーとして MeCab を利用したい場合はgroonga-tokenizer-mecabをインストールしてください。

groonga-tokenizer-mecabをインストール:

% sudo apt install -y -V groonga-tokenizer-mecab

2.3.3. bullseye(OracleのMySQL 8.0パッケージを利用)

インストール:

% sudo apt update
% sudo apt install -y -V apt-transport-https
% sudo apt install -y -V wget
% wget https://packages.groonga.org/debian/groonga-apt-source-latest-bullseye.deb
% wget https://repo.mysql.com/mysql-apt-config_0.8.22-1_all.deb
% sudo apt install -y -V ./groonga-apt-source-latest-bullseye.deb
% sudo env DEBIAN_FRONTEND=noninteractive MYSQL_SERVER_VERSION=mysql-8.0 apt install -y ./mysql-apt-config_0.8.22-1_all.deb
% sudo apt update
% sudo apt install -y -V mysql-community-8.0-mroonga

トークナイザーとして MeCab を利用したい場合はgroonga-tokenizer-mecabをインストールしてください。

groonga-tokenizer-mecabをインストール:

% sudo apt install -y -V groonga-tokenizer-mecab