How To Install mecab on Fedora 34
Introduction
In this tutorial we learn how to install mecab
on Fedora 34.
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. mecab 0.996 3.fc34.1 x86_64 351 k mecab-0.996-3.fc34.1.src.rpm fedora Yet Another Part-of-Speech and Morphological Analyzer http BSD or LGPLv2+ or GPL+ 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 34. In this tutorial we discuss both methods but you only need to choose one of method to install mecab.
Install mecab on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install mecab
using dnf
by running the following command:
sudo dnf -y install mecab
Install mecab on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
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 34
To uninstall only the mecab
package we can use the following command:
sudo dnf remove mecab
mecab Package Contents on Fedora 34
/etc/mecabrc
/usr/bin/mecab
/usr/lib/.build-id
/usr/lib/.build-id/00
/usr/lib/.build-id/00/08378d52f469f82bef58c9d1239322f6853b4a
/usr/lib/.build-id/1e
/usr/lib/.build-id/1e/c645dc505034683035c87e5df8f455779a2acf
/usr/lib/.build-id/5f
/usr/lib/.build-id/5f/53687f25b3cae3d7f776e7c99ca44f2532b8a6
/usr/lib/.build-id/75
/usr/lib/.build-id/75/1ef3073d5a00973794b40b14422b97cd8be589
/usr/lib/.build-id/b7
/usr/lib/.build-id/b7/5df66c7d6fdc46466ceeb960d6f1f0e7a4077f
/usr/lib/.build-id/e2
/usr/lib/.build-id/e2/a5bfaf3171295c093e6f7aaad7aa3a1a02560d
/usr/lib/.build-id/e8
/usr/lib/.build-id/e8/af721ad0db630be47d39c8978caaf119a97a43
/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
/etc/mecabrc
/usr/bin/mecab
/usr/lib/.build-id
/usr/lib/.build-id/09
/usr/lib/.build-id/09/76eea5a289f9b72470d55e2f298a97a0248137
/usr/lib/.build-id/35
/usr/lib/.build-id/35/5fafbf734a2fa6b29556c4ff801e3be6f8cd85
/usr/lib/.build-id/39
/usr/lib/.build-id/39/0236d8fdc772ebf9e8b8496d03885a691fc405
/usr/lib/.build-id/58
/usr/lib/.build-id/58/e779a572407f6e14d393530c00b6ff2de055a2
/usr/lib/.build-id/a2
/usr/lib/.build-id/a2/9ed88fff374f75a14a11b3029c0b558bd13188
/usr/lib/.build-id/ad
/usr/lib/.build-id/ad/abe9dc070812dc84f4df55d168a64b986c300e
/usr/lib/.build-id/c9
/usr/lib/.build-id/c9/f558754dcf166ebbdf4e02d1237e14df942a17
/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
References
- [mecab website](http://mecab.sourceforge.net/ http://mecab.sourceforge.net/)
Summary
In this tutorial we learn how to install mecab
on Fedora 34 using yum and dnf.