How To Install hunspell on CentOS 8

hunspell is A spell checker and morphological analyzer library A spell checker and morphological analyzer library

Introduction

In this tutorial we learn how to install hunspell on CentOS 8.

What is hunspell

Hunspell is a spell checker and morphological analyzer library and program designed for languages with rich morphology and complex word compounding or character encoding. Hunspell interfaces Curses library, Ispell pipe interface, LibreOffice UNO module. hunspell 1.6.2 1.el8 x86_64 331 k hunspell-1.6.2-1.el8.src.rpm appstream A spell checker and morphological analyzer library https LGPLv2+ or GPLv2+ or MPLv1.1 Hunspell is a spell checker and morphological analyzer library and program designed for languages with rich morphology and complex word compounding or character encoding. Hunspell interfaces Curses library, Ispell pipe interface, LibreOffice UNO module.

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

Install hunspell on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo dnf -y install hunspell

Install hunspell on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo yum -y install hunspell

How To Uninstall hunspell on CentOS 8

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

sudo dnf remove hunspell

hunspell Package Contents on CentOS 8

/usr/bin/hunspell
/usr/lib/.build-id
/usr/lib/.build-id/13
/usr/lib/.build-id/13/4257ad49717ba00208e710016d98f41dee487c
/usr/lib/.build-id/ec
/usr/lib/.build-id/ec/7ad0d5fac2b9c7eb57756b5b9debd58b893819
/usr/lib/libhunspell-1.6.so.0
/usr/lib/libhunspell-1.6.so.0.0.1
/usr/share/doc/hunspell
/usr/share/doc/hunspell/AUTHORS
/usr/share/doc/hunspell/AUTHORS.myspell
/usr/share/doc/hunspell/COPYING
/usr/share/doc/hunspell/COPYING.LESSER
/usr/share/doc/hunspell/COPYING.MPL
/usr/share/doc/hunspell/README
/usr/share/doc/hunspell/README.myspell
/usr/share/doc/hunspell/THANKS
/usr/share/doc/hunspell/license.hunspell
/usr/share/doc/hunspell/license.myspell
/usr/share/locale/de/LC_MESSAGES/hunspell.mo
/usr/share/locale/es/LC_MESSAGES/hunspell.mo
/usr/share/locale/hu/LC_MESSAGES/hunspell.mo
/usr/share/locale/it/LC_MESSAGES/hunspell.mo
/usr/share/locale/tg/LC_MESSAGES/hunspell.mo
/usr/share/man/hu/man1/hunspell.1.gz
/usr/share/man/man1/hunspell.1.gz
/usr/share/myspell
/usr/bin/hunspell
/usr/lib/.build-id
/usr/lib/.build-id/5c
/usr/lib/.build-id/5c/0893e4db7b3a8b5ebd6651be166eed99299b14
/usr/lib/.build-id/c2
/usr/lib/.build-id/c2/e21ac9aba067786154a477acadbbc75d7347e7
/usr/lib64/libhunspell-1.6.so.0
/usr/lib64/libhunspell-1.6.so.0.0.1
/usr/share/doc/hunspell
/usr/share/doc/hunspell/AUTHORS
/usr/share/doc/hunspell/AUTHORS.myspell
/usr/share/doc/hunspell/COPYING
/usr/share/doc/hunspell/COPYING.LESSER
/usr/share/doc/hunspell/COPYING.MPL
/usr/share/doc/hunspell/README
/usr/share/doc/hunspell/README.myspell
/usr/share/doc/hunspell/THANKS
/usr/share/doc/hunspell/license.hunspell
/usr/share/doc/hunspell/license.myspell
/usr/share/locale/de/LC_MESSAGES/hunspell.mo
/usr/share/locale/es/LC_MESSAGES/hunspell.mo
/usr/share/locale/hu/LC_MESSAGES/hunspell.mo
/usr/share/locale/it/LC_MESSAGES/hunspell.mo
/usr/share/locale/tg/LC_MESSAGES/hunspell.mo
/usr/share/man/hu/man1/hunspell.1.gz
/usr/share/man/man1/hunspell.1.gz
/usr/share/myspell

References

Summary

In this tutorial we learn how to install hunspell on CentOS 8 using yum and dnf.