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 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 -y groonga-libs
% sudo dnf install --disablerepo=AppStream -y --enablerepo=epel 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.2. 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.groonga.org/almalinux/8/groonga-release-latest.noarch.rpm
% sudo dnf install -y https://repo.percona.com/release/percona-release-latest.noarch.rpm
% 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.3. AlmaLinux 8 (with MariaDB 10.3 package)

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

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

[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.3/centos8-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

Install:

% 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.3-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.4. AlmaLinux 8 (with MariaDB 10.4 package)

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

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

[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.4/centos8-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

Install:

% 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.4-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.5. AlmaLinux 8 (with MariaDB 10.5 package)

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

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

[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.5/centos8-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

Install:

% 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.5-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.6. 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 = http://yum.mariadb.org/10.6/centos8-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

Install:

% 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 install -y --enablerepo=epel groonga-tokenizer-mecab