How To Install mecab on Rocky Linux 8

In this tutorial we learn how to install mecab on Rocky Linux 8. mecab is Yet Another Part-of-Speech and Morphological Analyzer

Introduction

In this tutorial we learn how to install mecab on Rocky Linux 8.

What is mecab

MeCab is a open source morphological analyzer which uses CRF (Conditional Random Fields) as the estimation of parameters. NOTE You have to install MeCab dictionary rpm to make use of MeCab.

We can use yum or dnf to install mecab on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install mecab.

Install mecab on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install mecab using dnf by running the following command:

sudo dnf -y install mecab

Install mecab on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install mecab using yum by running the following command:

sudo yum -y install mecab

How To Uninstall mecab on Rocky Linux 8

To uninstall only the mecab package we can use the following command:

sudo dnf remove mecab

mecab Package Contents on Rocky Linux 8

/etc/mecabrc
/usr/bin/mecab
/usr/lib/.build-id
/usr/lib/.build-id/10
/usr/lib/.build-id/10/d377305f315c3176b4dafed75cb01cfad6b7cd
/usr/lib/.build-id/3f
/usr/lib/.build-id/3f/7e324887462f7b4d95c8628903ed322c8f7662
/usr/lib/.build-id/62
/usr/lib/.build-id/62/41c5f77d3ec9d4200f043b06ca315e6688660b
/usr/lib/.build-id/62/ba36ade1f0cebbe7e8da374775d5ac85dd9cc7
/usr/lib/.build-id/b7
/usr/lib/.build-id/b7/377de067fe9c2beda74008e58825782e3b2614
/usr/lib/.build-id/da
/usr/lib/.build-id/da/297ab12670712d91267cc3a76a866332e412f3
/usr/lib/.build-id/ea
/usr/lib/.build-id/ea/a1de174c5074ce311d0bf35f72664785870b79
/usr/lib64/libmecab.so.2
/usr/lib64/libmecab.so.2.0.0
/usr/lib64/mecab
/usr/lib64/mecab/dic
/usr/libexec/mecab
/usr/libexec/mecab/mecab-cost-train
/usr/libexec/mecab/mecab-dict-gen
/usr/libexec/mecab/mecab-dict-index
/usr/libexec/mecab/mecab-system-eval
/usr/libexec/mecab/mecab-test-gen
/usr/share/doc/mecab
/usr/share/doc/mecab/AUTHORS
/usr/share/doc/mecab/BSD
/usr/share/doc/mecab/COPYING
/usr/share/doc/mecab/GPL
/usr/share/doc/mecab/LGPL
/usr/share/doc/mecab/doc
/usr/share/doc/mecab/doc/bindings.html
/usr/share/doc/mecab/doc/dic-detail.html
/usr/share/doc/mecab/doc/dic.html
/usr/share/doc/mecab/doc/en
/usr/share/doc/mecab/doc/en/bindings.html
/usr/share/doc/mecab/doc/feature.html
/usr/share/doc/mecab/doc/feature.png
/usr/share/doc/mecab/doc/flow.png
/usr/share/doc/mecab/doc/format.html
/usr/share/doc/mecab/doc/index.html
/usr/share/doc/mecab/doc/learn.html
/usr/share/doc/mecab/doc/libmecab.html
/usr/share/doc/mecab/doc/mecab.css
/usr/share/doc/mecab/doc/mecab.html
/usr/share/doc/mecab/doc/partial.html
/usr/share/doc/mecab/doc/posid.html
/usr/share/doc/mecab/doc/result.png
/usr/share/doc/mecab/doc/soft.html
/usr/share/doc/mecab/doc/unk.html
/usr/share/doc/mecab/example
/usr/share/doc/mecab/example/example.c
/usr/share/doc/mecab/example/example.cpp
/usr/share/doc/mecab/example/example_lattice.c
/usr/share/doc/mecab/example/example_lattice.cpp
/usr/share/doc/mecab/example/thread_test.cpp
/usr/share/man/man1/mecab.1.gz

References

Summary

In this tutorial we learn how to install mecab on Rocky Linux 8 using yum and dnf.