How To Install mecab on Fedora 36

In this tutorial we learn how to install mecab in Fedora 36. mecab is Yet Another Part-of-Speech and Morphological Analyzer

Introduction

In this tutorial we learn how to install mecab on Fedora 36.

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 Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install mecab.

Install mecab on Fedora 36 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 Fedora 36 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 Fedora 36

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

sudo dnf remove mecab

mecab Package Contents on Fedora 36

---
title: "How To Install mecab on Fedora 36"
linkTitle: "mecab"
type: "docs"
description: "In this tutorial we learn how to install mecab in Fedora 36. mecab is Yet Another Part-of-Speech and Morphological Analyzer"
date: "2022-08-17"
lastmod: "2022-08-17"
#image: /images/fedora/36/mecab-featured.png
---

## Introduction

In this tutorial we learn how to install `mecab` on Fedora 36.

### 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 Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install mecab.

## Install mecab on Fedora 36 Using dnf

Update yum database with `dnf` using the following command.

```bash
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 Fedora 36 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 Fedora 36

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

sudo dnf remove mecab

mecab Package Contents on Fedora 36

/etc/mecabrc
/usr/bin/mecab
/usr/lib/.build-id
/usr/lib/.build-id/40
/usr/lib/.build-id/40/700e65d54a92b2b7c0930627c30620ff53c0b3
/usr/lib/.build-id/4d
/usr/lib/.build-id/4d/b6850a7f10b2cee4859b7dbf2af5c40b355e24
/usr/lib/.build-id/54
/usr/lib/.build-id/54/7994e88b4b2c6219ce5771286df5a0b30af283
/usr/lib/.build-id/6e
/usr/lib/.build-id/6e/73d6eb3046d8dcd00cce1614adf52c2bb35324
/usr/lib/.build-id/91
/usr/lib/.build-id/91/c130ec42be6e57e8a89482cf461e844501686f
/usr/lib/.build-id/cf
/usr/lib/.build-id/cf/07aa37b0fa5558543b520ee6d085125ff8b9ac
/usr/lib/.build-id/d1
/usr/lib/.build-id/d1/54e362fc68cf0b7601e76fa746c8f8c2ec6887
/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

/etc/mecabrc /usr/bin/mecab /usr/lib/.build-id /usr/lib/.build-id/2f /usr/lib/.build-id/2f/45f8aaf680dd78f784e181e0a07f3517198f15 /usr/lib/.build-id/6d /usr/lib/.build-id/6d/b5453ee8d72b6db96750b11c632e573176e406 /usr/lib/.build-id/7d /usr/lib/.build-id/7d/060f1d93ce5a05ca77d459ae4a8ff3af69a562 /usr/lib/.build-id/8c /usr/lib/.build-id/8c/43e63ac08909900ac8efc2685bb39a73527815 /usr/lib/.build-id/a2 /usr/lib/.build-id/a2/30d2afd6039de6cc6ad09c0c8382011ff1f5a3 /usr/lib/.build-id/ba /usr/lib/.build-id/ba/7c9e0368a81d22cfb29f5076a3b3364365eb57 /usr/lib/.build-id/e1 /usr/lib/.build-id/e1/ebb2253b8a3f3c5043c4d2b9fc53ca25c8c2aa /usr/lib/libmecab.so.2 /usr/lib/libmecab.so.2.0.0 /usr/lib/mecab /usr/lib/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

Summary

In this tutorial we learn how to install mecab on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).


## References

* [mecab website](http://mecab.sourceforge.net/)

## Summary

In this tutorial we learn how to install `mecab` on [Fedora 36](/fedora/36/) using [yum](/fedora/36/yum/) and [dnf]((/fedora/36/dnf/).