2.5. AlmaLinux — Mroonga vmrn_version documentation

Skip to main content
`Ctrl`+`K`

# 2.5. AlmaLinux

This section describes how to install Mroonga related RPM packages on AlmaLinux. You can install them by `dnf`.

## 2.5.1. AlmaLinux 8 (with the Oracle MySQL 8.0 package)

You can use Oracle’s MySQL packages version 8.0 on AlmaLinux 8 since Mroonga 11.10 release.

Note

There are already known issues about MySQL 8.0.

- Wrapper mode Wrapper mode is not supported yet

- Storage mode Storage mode does not support the following feature.

  - The feature of relevant to the optimization.

Install:

    $ sudo dnf -y module disable mysql
    $ sudo dnf install -y  https://packages.apache.org/artifactory/arrow/almalinux/8/apache-arrow-release-latest.rpm
    $ sudo dnf install -y https://packages.groonga.org/almalinux/8/groonga-release-latest.noarch.rpm
    $ sudo dnf install -y https://repo.mysql.com/mysql80-community-release-el8.rpm
    $ sudo dnf install --disablerepo=AppStream -y --enablerepo=epel,powertools mysql-community-8.0-mroonga
    ($ sudo systemctl start mysqld)
    ($ tmp_password=$(sudo grep 'A temporary password' /var/log/mysqld.log | sed -e 's/^.*: //'))
    ($ sudo mysqladmin -u root --password="${tmp_password}" password)

If you want to use MeCab as a tokenizer, install groonga-tokenizer-mecab package.

Install groonga-tokenizer-mecab package:

    $ sudo dnf -y module enable mysql
    $ sudo dnf install -y --enablerepo=epel groonga-tokenizer-mecab
    $ sudo dnf -y module disable mysql

## 2.5.2. AlmaLinux 8 (with the Oracle MySQL 8.4 package)

You can use Oracle’s MySQL packages version 8.4 on AlmaLinux 8 since Mroonga 14.04 release.

Note

There are already known issues about MySQL 8.4.

- Wrapper mode Wrapper mode is not supported

- Storage mode Storage mode does not support a feature relevant to an optimization.

Install:

    $ sudo dnf -y module disable mysql
    $ sudo dnf install -y  https://packages.apache.org/artifactory/arrow/almalinux/8/apache-arrow-release-latest.rpm
    $ sudo dnf install -y https://packages.groonga.org/almalinux/8/groonga-release-latest.noarch.rpm
    $ sudo dnf install -y https://repo.mysql.com/mysql84-community-release-el8.rpm
    $ sudo dnf install -y --enablerepo=epel,powertools mysql-community-8.4-mroonga
    ($ sudo systemctl start mysqld)
    ($ tmp_password=$(sudo grep 'A temporary password' /var/log/mysqld.log | sed -e 's/^.*: //'))
    ($ sudo mysqladmin -u root --password="${tmp_password}" password)

If you want to use MeCab as a tokenizer, install groonga-tokenizer-mecab package.

Install groonga-tokenizer-mecab package:

    $ sudo dnf -y module enable mysql
    $ sudo dnf install -y --enablerepo=epel groonga-tokenizer-mecab
    $ sudo dnf -y module disable mysql

## 2.5.3. AlmaLinux 8 (with Percona Server 8.0 package)

You can use Percona Server packages version 8.0 on AlmaLinux 8 since Mroonga 11.10 release.

Install:

    $ sudo dnf install -y https://packages.apache.org/artifactory/arrow/almalinux/8/apache-arrow-release-latest.rpm
    $ sudo dnf install -y https://packages.groonga.org/almalinux/8/groonga-release-latest.noarch.rpm
    $ sudo dnf install -y https://repo.percona.com/yum/percona-release-latest.noarch.rpm
    $ sudo percona-release setup ps80
    $ sudo dnf install -y --enablerepo=epel,powertools percona-server-8.0-mroonga
    ($ sudo systemctl start mysqld)
    ($ tmp_password=$(sudo grep 'A temporary password' /var/log/mysqld.log | sed -e 's/^.*: //'))
    ($ sudo mysqladmin -u root --password="${tmp_password}" password)

If you want to use MeCab as a tokenizer, install groonga-tokenizer-mecab package.

Install groonga-tokenizer-mecab package:

    $ sudo dnf install -y --enablerepo=epel groonga-tokenizer-mecab

## 2.5.4. AlmaLinux 8 (with MariaDB 10.6 package)

You can use MariaDB’s MariaDB packages version 10.6 on AlmaLinux 8 since Mroonga 11.10 release.

Create `/etc/yum.repos.d/MariaDB.repo` with the following content:

    [mariadb]
    name = MariaDB
    baseurl = https://rpm.mariadb.org/10.6/rhel/$releasever/$basearch
    gpgkey = https://rpm.mariadb.org/RPM-GPG-KEY-MariaDB
    gpgcheck = 1

Install:

    $ sudo dnf install -y https://packages.apache.org/artifactory/arrow/almalinux/8/apache-arrow-release-latest.rpm
    $ sudo dnf install -y https://packages.groonga.org/almalinux/8/groonga-release-latest.noarch.rpm
    $ sudo dnf module -y disable mariadb
    $ sudo dnf module -y disable mysql
    $ sudo dnf install -y --enablerepo=powertools mariadb-server
    $ sudo systemctl start mariadb
    $ sudo dnf install -y --enablerepo=powertools mariadb-10.6-mroonga
    ($ sudo mysqladmin -u root password 'new-password')

If you want to use MeCab as a tokenizer, install groonga-tokenizer-mecab package.

Install groonga-tokenizer-mecab package:

    $ sudo dnf module -y enable mysql
    $ sudo dnf install -y --enablerepo=epel groonga-tokenizer-mecab
    $ sudo dnf module -y disable mysql

## 2.5.5. AlmaLinux 8 (with MariaDB 10.11 package)

You can use MariaDB’s MariaDB packages version 10.11 on AlmaLinux 8 since Mroonga 13.01 release.

Create `/etc/yum.repos.d/MariaDB.repo` with the following content:

    [mariadb]
    name = MariaDB
    baseurl = https://rpm.mariadb.org/10.11/rhel/$releasever/$basearch
    gpgkey = https://rpm.mariadb.org/RPM-GPG-KEY-MariaDB
    gpgcheck = 1

Install:

    $ sudo dnf install -y https://packages.apache.org/artifactory/arrow/almalinux/8/apache-arrow-release-latest.rpm
    $ sudo dnf install -y https://packages.groonga.org/almalinux/8/groonga-release-latest.noarch.rpm
    $ sudo dnf module -y disable mariadb
    $ sudo dnf module -y disable mysql
    $ sudo dnf install -y --enablerepo=powertools mariadb-server
    $ sudo systemctl start mariadb
    $ sudo dnf install -y --enablerepo=powertools mariadb-10.11-mroonga
    ($ sudo mysqladmin -u root password 'new-password')

If you want to use MeCab as a tokenizer, install groonga-tokenizer-mecab package.

Install groonga-tokenizer-mecab package:

    $ sudo dnf module -y enable mysql
    $ sudo dnf install -y --enablerepo=epel groonga-tokenizer-mecab
    $ sudo dnf module -y disable mysql

## 2.5.6. AlmaLinux 8 (with MariaDB 11.4 package)

You can use MariaDB’s MariaDB packages version 11.4 on AlmaLinux 8 since Mroonga 14.07 release.

Create `/etc/yum.repos.d/MariaDB.repo` with the following content:

    [mariadb]
    name = MariaDB
    baseurl = https://rpm.mariadb.org/11.4/rhel/$releasever/$basearch
    gpgkey = https://rpm.mariadb.org/RPM-GPG-KEY-MariaDB
    gpgcheck = 1

Install:

    $ sudo dnf install -y https://packages.apache.org/artifactory/arrow/almalinux/8/apache-arrow-release-latest.rpm
    $ sudo dnf install -y https://packages.groonga.org/almalinux/8/groonga-release-latest.noarch.rpm
    $ sudo dnf module -y disable mariadb
    $ sudo dnf module -y disable mysql
    $ sudo dnf install -y --enablerepo=powertools mariadb-server
    $ sudo systemctl start mariadb
    $ sudo dnf install -y --enablerepo=powertools mariadb-11.4-mroonga
    ($ sudo mariadb-admin -u root password 'new-password')

If you want to use MeCab as a tokenizer, install groonga-tokenizer-mecab package.

Install groonga-tokenizer-mecab package:

    $ sudo dnf module -y enable mysql
    $ sudo dnf install -y --enablerepo=epel groonga-tokenizer-mecab
    $ sudo dnf module -y disable mysql

## 2.5.7. AlmaLinux 8 (with MariaDB 11.8 package)

You can use MariaDB’s MariaDB packages version 11.8 on AlmaLinux 8 since Mroonga 15.21 release.

Create `/etc/yum.repos.d/MariaDB.repo` with the following content:

    [mariadb]
    name = MariaDB
    baseurl = https://rpm.mariadb.org/11.8/rhel/$releasever/$basearch
    gpgkey = https://rpm.mariadb.org/RPM-GPG-KEY-MariaDB
    gpgcheck = 1

Install:

    $ sudo dnf install -y https://packages.apache.org/artifactory/arrow/almalinux/8/apache-arrow-release-latest.rpm
    $ sudo dnf install -y https://packages.groonga.org/almalinux/8/groonga-release-latest.noarch.rpm
    $ sudo dnf module -y disable mariadb
    $ sudo dnf module -y disable mysql
    $ sudo dnf install -y --enablerepo=powertools mariadb-server
    $ sudo systemctl start mariadb
    $ sudo dnf install -y --enablerepo=powertools mariadb-11.8-mroonga
    ($ sudo mariadb-admin -u root password 'new-password')

If you want to use MeCab as a tokenizer, install groonga-tokenizer-mecab package.

Install groonga-tokenizer-mecab package:

    $ sudo dnf module -y enable mysql
    $ sudo dnf install -y --enablerepo=epel groonga-tokenizer-mecab
    $ sudo dnf module -y disable mysql

## 2.5.8. AlmaLinux 9 (with the Oracle MySQL 8.0 package)

You can use Oracle’s MySQL packages version 8.0 on AlmaLinux 9 since Mroonga 12.12 release.

Note

There are already known issues about MySQL 8.0.

- Wrapper mode Wrapper mode is not supported yet

- Storage mode Storage mode does not support the following feature.

  - The feature of relevant to the optimization.

Install:

    $ sudo dnf install -y https://packages.apache.org/artifactory/arrow/almalinux/9/apache-arrow-release-latest.rpm
    $ sudo dnf install -y https://packages.groonga.org/almalinux/9/groonga-release-latest.noarch.rpm
    $ sudo dnf install -y https://repo.mysql.com/mysql80-community-release-el9.rpm
    $ sudo dnf install --disablerepo=AppStream -y --enablerepo=epel,crb mysql-community-8.0-mroonga
    ($ sudo systemctl start mysqld)
    ($ tmp_password=$(sudo grep 'A temporary password' /var/log/mysqld.log | sed -e 's/^.*: //'))
    ($ sudo mysqladmin -u root --password="${tmp_password}" password)

If you want to use MeCab as a tokenizer, install groonga-tokenizer-mecab package.

Install groonga-tokenizer-mecab package:

    $ sudo dnf install -y --enablerepo=epel groonga-tokenizer-mecab

## 2.5.9. AlmaLinux 9 (with the Oracle MySQL 8.4 package)

You can use Oracle’s MySQL packages version 8.4 on AlmaLinux 9 since Mroonga 14.04 release.

Note

There are already known issues about MySQL 8.4.

- Wrapper mode Wrapper mode is not supported

- Storage mode Storage mode does not support a feature relevant to an optimization.

Install:

    $ sudo dnf install -y https://packages.apache.org/artifactory/arrow/almalinux/9/apache-arrow-release-latest.rpm
    $ sudo dnf install -y https://packages.groonga.org/almalinux/9/groonga-release-latest.noarch.rpm
    $ sudo dnf install -y https://repo.mysql.com/mysql84-community-release-el9.rpm
    $ sudo dnf install -y --enablerepo=epel,crb mysql-community-8.4-mroonga
    ($ sudo systemctl start mysqld)
    ($ tmp_password=$(sudo grep 'A temporary password' /var/log/mysqld.log | sed -e 's/^.*: //'))
    ($ sudo mysqladmin -u root --password="${tmp_password}" password)

If you want to use MeCab as a tokenizer, install groonga-tokenizer-mecab package.

Install groonga-tokenizer-mecab package:

    $ sudo dnf install -y --enablerepo=epel groonga-tokenizer-mecab

## 2.5.10. AlmaLinux 9 (with Percona Server 8.0 package)

You can use Percona Server packages version 8.0 on AlmaLinux 9 since Mroonga 12.12 release.

Install:

    $ sudo dnf install -y https://packages.apache.org/artifactory/arrow/almalinux/9/apache-arrow-release-latest.rpm
    $ sudo dnf install -y https://packages.groonga.org/almalinux/9/groonga-release-latest.noarch.rpm
    $ sudo dnf install -y https://repo.percona.com/yum/percona-release-latest.noarch.rpm
    $ sudo percona-release setup ps80
    $ sudo dnf install -y --enablerepo=epel percona-server-8.0-mroonga
    ($ sudo systemctl start mysqld)
    ($ tmp_password=$(sudo grep 'A temporary password' /var/log/mysqld.log | sed -e 's/^.*: //'))
    ($ sudo mysqladmin -u root --password="${tmp_password}" password)

If you want to use MeCab as a tokenizer, install groonga-tokenizer-mecab package.

Install groonga-tokenizer-mecab package:

    $ sudo dnf install -y --enablerepo=epel groonga-tokenizer-mecab

## 2.5.11. AlmaLinux 9 (with Percona Server 8.4 package)

You can use Percona Server packages version 8.4 on AlmaLinux 9 since Mroonga 15.04 release.

Install:

    $ sudo dnf install -y https://packages.apache.org/artifactory/arrow/almalinux/9/apache-arrow-release-latest.rpm
    $ sudo dnf install -y https://packages.groonga.org/almalinux/9/groonga-release-latest.noarch.rpm
    $ sudo dnf install -y https://repo.percona.com/yum/percona-release-latest.noarch.rpm
    $ sudo percona-release enable-only ps-84-lts release
    $ sudo dnf install -y --enablerepo=epel percona-server-8.4-mroonga
    ($ sudo systemctl start mysqld)
    ($ tmp_password=$(sudo grep 'A temporary password' /var/log/mysqld.log | sed -e 's/^.*: //'))
    ($ sudo mysqladmin -u root --password="${tmp_password}" password)

If you want to use MeCab as a tokenizer, install groonga-tokenizer-mecab package.

Install groonga-tokenizer-mecab package:

    $ sudo dnf install -y --enablerepo=epel groonga-tokenizer-mecab

## 2.5.12. AlmaLinux 9 (with MariaDB 10.6 package)

You can use MariaDB’s MariaDB packages version 10.6 on AlmaLinux 9 since Mroonga 12.12 release.

Create `/etc/yum.repos.d/MariaDB.repo` with the following content:

    [mariadb]
    name = MariaDB
    baseurl = https://rpm.mariadb.org/10.6/rhel/$releasever/$basearch
    gpgkey = https://rpm.mariadb.org/RPM-GPG-KEY-MariaDB
    gpgcheck = 1

Install:

    $ sudo dnf install -y https://packages.apache.org/artifactory/arrow/almalinux/9/apache-arrow-release-latest.rpm
    $ sudo dnf install -y https://packages.groonga.org/almalinux/9/groonga-release-latest.noarch.rpm
    $ sudo dnf install -y mariadb-server
    $ sudo systemctl start mariadb
    $ sudo dnf install -y mariadb-10.6-mroonga
    ($ sudo mysqladmin -u root password 'new-password')

If you want to use MeCab as a tokenizer, install groonga-tokenizer-mecab package.

Install groonga-tokenizer-mecab package:

    $ sudo dnf install -y --enablerepo=epel groonga-tokenizer-mecab

## 2.5.13. AlmaLinux 9 (with MariaDB 10.11 package)

You can use MariaDB’s MariaDB packages version 10.11 on AlmaLinux 9 since Mroonga 13.01 release.

Create `/etc/yum.repos.d/MariaDB.repo` with the following content:

    [mariadb]
    name = MariaDB
    baseurl = https://rpm.mariadb.org/10.11/rhel/$releasever/$basearch
    gpgkey = https://rpm.mariadb.org/RPM-GPG-KEY-MariaDB
    gpgcheck = 1

Install:

    $ sudo dnf install -y https://packages.apache.org/artifactory/arrow/almalinux/9/apache-arrow-release-latest.rpm
    $ sudo dnf install -y https://packages.groonga.org/almalinux/9/groonga-release-latest.noarch.rpm
    $ sudo dnf install -y mariadb-server
    $ sudo systemctl start mariadb
    $ sudo dnf install -y mariadb-10.11-mroonga
    ($ sudo mysqladmin -u root password 'new-password')

If you want to use MeCab as a tokenizer, install groonga-tokenizer-mecab package.

Install groonga-tokenizer-mecab package:

    $ sudo dnf install -y --enablerepo=epel groonga-tokenizer-mecab

## 2.5.14. AlmaLinux 9 (with MariaDB 11.4 package)

You can use MariaDB’s MariaDB packages version 11.4 on AlmaLinux 9 since Mroonga 14.07 release.

Create `/etc/yum.repos.d/MariaDB.repo` with the following content:

    [mariadb]
    name = MariaDB
    baseurl = https://rpm.mariadb.org/11.4/rhel/$releasever/$basearch
    gpgkey = https://rpm.mariadb.org/RPM-GPG-KEY-MariaDB
    gpgcheck = 1

Install:

    $ sudo dnf install -y https://packages.apache.org/artifactory/arrow/almalinux/9/apache-arrow-release-latest.rpm
    $ sudo dnf install -y https://packages.groonga.org/almalinux/9/groonga-release-latest.noarch.rpm
    $ sudo dnf install -y mariadb-server
    $ sudo systemctl start mariadb
    $ sudo dnf install -y mariadb-11.4-mroonga
    ($ sudo mariadb-admin -u root password 'new-password')

If you want to use MeCab as a tokenizer, install groonga-tokenizer-mecab package.

Install groonga-tokenizer-mecab package:

    $ sudo dnf install -y --enablerepo=epel groonga-tokenizer-mecab

## 2.5.15. AlmaLinux 10 (with the Oracle MySQL 8.4 package)

You can use Oracle’s MySQL packages version 8.4 on AlmaLinux 10 since Mroonga 15.18 release.

Note

- Wrapper mode Wrapper mode is not supported

- Storage mode Storage mode does not support a feature relevant to an optimization.

Install:

    $ sudo dnf install -y  https://packages.apache.org/artifactory/arrow/almalinux/10/apache-arrow-release-latest.rpm
    $ sudo dnf install -y https://packages.groonga.org/almalinux/10/groonga-release-latest.noarch.rpm
    $ sudo dnf install -y https://repo.mysql.com/mysql84-community-release-el10.rpm
    $ sudo dnf install --disablerepo=AppStream -y --enablerepo=epel mysql-community-8.4-mroonga
    ($ sudo systemctl start mysqld)
    ($ tmp_password=$(sudo grep 'A temporary password' /var/log/mysqld.log | sed -e 's/^.*: //'))
    ($ sudo mysqladmin -u root --password="${tmp_password}" password)

If you want to use MeCab as a tokenizer, install groonga-tokenizer-mecab package.

Install groonga-tokenizer-mecab package:

    $ sudo dnf install -y --enablerepo=epel groonga-tokenizer-mecab