How To Install erlang-hamcrest on Fedora 36

In this tutorial we learn how to install erlang-hamcrest in Fedora 36. erlang-hamcrest is A framework for writing matcher objects using declarative rules

Introduction

In this tutorial we learn how to install erlang-hamcrest on Fedora 36.

What is erlang-hamcrest

Hamcrest is a framework for writing matcher objects allowing ‘match’ rules to be defined declaratively. There are a number of situations where matchers are invaluable, such as UI validation, or data filtering, but it is in the area of writing flexible tests that matchers are most commonly used.

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

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

sudo dnf -y install erlang-hamcrest

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

sudo yum -y install erlang-hamcrest

How To Uninstall erlang-hamcrest on Fedora 36

To uninstall only the erlang-hamcrest package we can use the following command:

sudo dnf remove erlang-hamcrest

erlang-hamcrest Package Contents on Fedora 36

/usr/share/doc/erlang-hamcrest
/usr/share/doc/erlang-hamcrest/NOTES
/usr/share/doc/erlang-hamcrest/README.markdown
/usr/share/erlang/lib/hamcrest-0.1.0
/usr/share/erlang/lib/hamcrest-0.1.0/ebin
/usr/share/erlang/lib/hamcrest-0.1.0/ebin/hamcrest.app
/usr/share/erlang/lib/hamcrest-0.1.0/ebin/hamcrest.beam
/usr/share/erlang/lib/hamcrest-0.1.0/ebin/hamcrest_matchers.beam
/usr/share/erlang/lib/hamcrest-0.1.0/ebin/hamcrest_term.beam
/usr/share/erlang/lib/hamcrest-0.1.0/ebin/hamcrest_transform.beam
/usr/share/erlang/lib/hamcrest-0.1.0/include
/usr/share/erlang/lib/hamcrest-0.1.0/include/hamcrest.hrl
/usr/share/erlang/lib/hamcrest-0.1.0/include/hamcrest_internal.hrl
/usr/share/licenses/erlang-hamcrest
/usr/share/licenses/erlang-hamcrest/LICENCE

References

Summary

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