2.4. Ubuntu#

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

注釈

PPA(Personal Package Archive、ppa:groonga/ppa)は非推奨です。代わりに、Groonga APTリポジトリ(packages.groonga.org)を使用してください。

サポートしているUbuntuのバージョンは次の通りです。

  • 22.04 Jammy Jellyfish

  • 24.04 Noble Numbat

MySQLをサポートしているUbuntuのバージョンは次の通りです。

  • 22.04 Jammy Jellyfish

  • 24.04 Noble Numbat

MariaDBをサポートしているUbuntuのバージョンは次の通りです。

  • 22.04 Jammy Jellyfish

  • 24.04 Noble Numbat

2.4.1. Groonga APTリポジトリー#

Mroongaをインストールするときは、universeリポジトリーとセキュリティアップデートリポジトリを有効にしてください。:

$ sudo apt install -y -V software-properties-common lsb-release
$ sudo add-apt-repository -y universe
$ sudo add-apt-repository -y "deb http://security.ubuntu.com/ubuntu $(lsb_release --short --codename)-security main restricted"

Groonga APTリポジトリーをシステムに追加します:

$ sudo apt update
$ sudo apt install -y -V ca-certificates wget
$ wget https://packages.groonga.org/ubuntu/groonga-apt-source-latest-$(lsb_release --codename --short).deb
$ sudo apt install -y -V ./groonga-apt-source-latest-$(lsb_release --codename --short).deb
$ rm -f groonga-apt-source-latest-$(lsb_release --codename --short).deb
$ sudo apt update

MySQL用のMroongaをインストール:

$ sudo apt install -y -V mysql-mroonga

MariaDB用のMroongaをインストール:

$ sudo apt install -y -V mariadb-mroonga

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

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

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