How To Install foma on Fedora 36

In this tutorial we learn how to install foma in Fedora 36. foma is Xerox-compatible finite-state compiler

Introduction

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

What is foma

Foma can be used for constructing finite-state automata and transducers. It has support for many natural language processing applications such as producing morphological analyzers. It is sufficiently generic to use for a large number of purposes in addition to NLP. The foma interface is similar to the Xerox xfst interface. This package includes the foma command line tools.

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

Install foma 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 foma using dnf by running the following command:

sudo dnf -y install foma

Install foma 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 foma using yum by running the following command:

sudo yum -y install foma

How To Uninstall foma on Fedora 36

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

sudo dnf remove foma

foma Package Contents on Fedora 36

/usr/bin/cgflookup
/usr/bin/flookup
/usr/bin/foma
/usr/lib/.build-id
/usr/lib/.build-id/07
/usr/lib/.build-id/07/50897bc3cdac9d820f0e1c11b3ed44113a3df6
/usr/lib/.build-id/c9
/usr/lib/.build-id/c9/1cba1346ba2bb6cf16b41ab058109a7e512573
/usr/lib/.build-id/fe
/usr/lib/.build-id/fe/cb6da7252415e62f657535792da7c337793949

References

Summary

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