2.5. CentOS

This section describes how to install Mroonga related RPM packages on CentOS. You can install them by yum.

We distribute both 32-bit and 64-bit packages but we strongly recommend a 64-bit package for server. You should use a 32-bit package just only for tests or development. You will encounter an out of memory error with a 32-bit package even if you just process medium size data.

2.5.1. CentOS 7 (with the Oracle MySQL 5.7 package)

You can use Oracle’s MySQL packages version 5.7 on CentOS 7 since Mroonga 5.09 release.

Install:

% sudo yum install -y https://packages.groonga.org/centos/groonga-release-latest.noarch.rpm
% sudo yum install -y https://repo.mysql.com/mysql-community-release-el7.rpm
% sudo yum install -y yum-utils
% sudo yum-config-manager --disable mysql80-community
% sudo yum-config-manager --enable mysql57-community
% sudo yum install -y --enablerepo=epel mysql-community-5.7-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 yum install -y --enablerepo=epel groonga-tokenizer-mecab

2.5.2. CentOS 7 (with the Oracle MySQL 8.0 package)

You can use Oracle’s MySQL packages version 8.0 on CentOS 7 since Mroonga 9.04 release.

Note

There are already known issues about MySQL 8.0.

Install:

% sudo yum install -y https://packages.groonga.org/centos/groonga-release-latest.noarch.rpm
% sudo yum install -y https://repo.mysql.com/mysql-community-release-el7.rpm
% sudo yum install -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 yum install -y --enablerepo=epel groonga-tokenizer-mecab

2.5.3. CentOS 7 (with Percona Server 5.7 package)

You can use Percona Server packages version 5.7 on CentOS 7 since Mroonga 6.02 release.

Install:

% sudo yum install -y https://packages.groonga.org/centos/groonga-release-latest.noarch.rpm
% sudo yum install -y https://repo.percona.com/release/percona-release-latest.noarch.rpm
% sudo yum install -y --enablerepo=epel percona-server-5.7-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 yum install -y --enablerepo=epel groonga-tokenizer-mecab

2.5.4. CentOS 7 (with Percona Server 8.0 package)

You can use Percona Server packages version 8.0 on CentOS 7 since Mroonga 10.06 release.

Install:

% sudo yum install -y https://packages.groonga.org/centos/groonga-release-latest.noarch.rpm
% sudo yum install -y https://repo.percona.com/release/percona-release-latest.noarch.rpm
% sudo yum 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 yum install -y --enablerepo=epel groonga-tokenizer-mecab

2.5.5. CentOS 7 (with MariaDB 10.2 package)

You can use MariaDB’s MariaDB packages version 10.2 on CentOS 7 since Mroonga 7.06 release.

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

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

Install:

% sudo yum install -y https://packages.groonga.org/centos/groonga-release-latest.noarch.rpm
% sudo yum install -y MariaDB-server
% sudo systemctl start mariadb
% sudo yum install -y --enablerepo=epel mariadb-10.2-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 yum install -y --enablerepo=epel groonga-tokenizer-mecab

2.5.6. CentOS 7 (with MariaDB 10.3 package)

You can use MariaDB’s MariaDB packages version 10.3 on CentOS 7 since Mroonga 7.11 release.

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

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

Install:

% sudo yum install -y https://packages.groonga.org/centos/groonga-release-latest.noarch.rpm
% sudo yum install -y MariaDB-server
% sudo systemctl start mariadb
% sudo yum install -y --enablerepo=epel 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 yum install -y --enablerepo=epel groonga-tokenizer-mecab

2.5.7. CentOS 7 (with MariaDB 10.4 package)

You can use MariaDB’s MariaDB packages version 10.4 on CentOS 7 since Mroonga 9.07 release.

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

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

Install:

% sudo yum install -y https://packages.groonga.org/centos/groonga-release-latest.noarch.rpm
% sudo yum install -y MariaDB-server
% sudo systemctl start mariadb
% sudo yum install -y --enablerepo=epel 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 yum install -y --enablerepo=epel groonga-tokenizer-mecab

2.5.8. CentOS 7 (with MariaDB 10.5 package)

You can use MariaDB’s MariaDB packages version 10.5 on CentOS 7 since Mroonga 10.06 release.

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

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

Install:

% sudo yum install -y https://packages.groonga.org/centos/groonga-release-latest.noarch.rpm
% sudo yum install -y MariaDB-server
% sudo systemctl start mariadb
% sudo yum install -y --enablerepo=epel 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 yum install -y --enablerepo=epel groonga-tokenizer-mecab

2.5.9. CentOS 8 (with the Oracle MySQL 8.0 package)

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

Note

There are already known issues about MySQL 8.0.

Install:

% sudo dnf install -y https://packages.groonga.org/centos/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)

2.5.10. CentOS 8 (with Percona Server 8.0 package)

You can use Percona Server packages version 8.0 on CentOS 8 since Mroonga 10.06 release.

Install:

% sudo dnf install -y https://packages.groonga.org/centos/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.11. CentOS 8 (with MariaDB 10.3 package)

You can use MariaDB’s MariaDB packages version 10.3 on CentOS 8 since Mroonga 9.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/centos/groonga-release-latest.noarch.rpm
% sudo dnf install -y boost-program-options
% sudo dnf install --disablerepo=AppStream -y MariaDB-server
% sudo systemctl start mariadb
% sudo dnf install -y --enablerepo=epel mariadb-10.3-mroonga
(% sudo mysqladmin -u root password 'new-password')

2.5.12. CentOS 8 (with MariaDB 10.4 package)

You can use MariaDB’s MariaDB packages version 10.4 on CentOS 8 since Mroonga 9.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/centos/groonga-release-latest.noarch.rpm
% sudo dnf install -y boost-program-options
% sudo dnf install --disablerepo=AppStream -y MariaDB-server
% sudo systemctl start mariadb
% sudo dnf install -y --enablerepo=epel mariadb-10.4-mroonga
(% sudo mysqladmin -u root password 'new-password')

2.5.13. CentOS 8 (with MariaDB 10.5 package)

You can use MariaDB’s MariaDB packages version 10.5 on CentOS 8 since Mroonga 10.06 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/centos/groonga-release-latest.noarch.rpm
% sudo dnf install -y boost-program-options
% sudo dnf install --disablerepo=AppStream -y MariaDB-server
% sudo systemctl start mariadb
% sudo dnf install -y --enablerepo=epel mariadb-10.5-mroonga
(% sudo mysqladmin -u root password 'new-password')