How To Install ragel on Fedora 34

ragel is Finite state machine compiler Finite state machine compiler

Introduction

In this tutorial we learn how to install ragel on Fedora 34.

What is ragel

Ragel compiles executable finite state machines from regular languages. Ragel targets C, C++ and ASM. Ragel state machines can not only recognize byte sequences as regular expression machines do, but can also execute code at arbitrary points in the recognition of a regular language. Code embedding is done using inline operators that do not disrupt the regular language syntax. ragel 7.0.0.12 5.fc34 x86_64 1.1 M ragel-7.0.0.12-5.fc34.src.rpm fedora Finite state machine compiler http MIT and LGPLv2+ Ragel compiles executable finite state machines from regular languages. Ragel targets C, C++ and ASM. Ragel state machines can not only recognize byte sequences as regular expression machines do, but can also execute code at arbitrary points in the recognition of a regular language. Code embedding is done using inline operators that do not disrupt the regular language syntax.

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

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

sudo dnf -y install ragel

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

sudo yum -y install ragel

How To Uninstall ragel on Fedora 34

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

sudo dnf remove ragel

ragel Package Contents on Fedora 34

/usr/bin/ragel
/usr/bin/ragel-asm
/usr/bin/ragel-c
/usr/bin/ragel-crack
/usr/bin/ragel-csharp
/usr/bin/ragel-d
/usr/bin/ragel-go
/usr/bin/ragel-java
/usr/bin/ragel-js
/usr/bin/ragel-julia
/usr/bin/ragel-ocaml
/usr/bin/ragel-ruby
/usr/bin/ragel-rust
/usr/lib/.build-id
/usr/lib/.build-id/10
/usr/lib/.build-id/10/3dd5c8d8d031198b5dc4b5bf173693bd8c4c40
/usr/lib/.build-id/11
/usr/lib/.build-id/11/dc5f930775850a213a459c13a73a134277b1ca
/usr/lib/.build-id/26
/usr/lib/.build-id/26/955578402bf06bfc3e319dca15ae45290cfff8
/usr/lib/.build-id/34
/usr/lib/.build-id/34/8b376a939df8e1efc63e29c65be30ad065dd30
/usr/lib/.build-id/63
/usr/lib/.build-id/63/8b7cd6fc139b8783f5577659937fb688fe9bf8
/usr/lib/.build-id/70
/usr/lib/.build-id/70/380b5350620f0ea81daf63e34cf6f35ff8bd77
/usr/lib/.build-id/85
/usr/lib/.build-id/85/e47c9a47b57da6e0ac970f043acfc024fb4e29
/usr/lib/.build-id/b2
/usr/lib/.build-id/b2/b901a43b73ebcb8c8ba8dfc3fcbf42d596ca66
/usr/lib/.build-id/be
/usr/lib/.build-id/be/ba584873da2831d7c5a5dcef7e0d0691f932f4
/usr/lib/.build-id/c4
/usr/lib/.build-id/c4/2794b4e7dbfd7f03a78048d835049b7363b9f1
/usr/lib/.build-id/c5
/usr/lib/.build-id/c5/994bc3f28099c63bf1dae5d01ae90e02aa47ee
/usr/lib/.build-id/c6
/usr/lib/.build-id/c6/770bb1d3af79d5b42cd8d2bdcdcf7c75f5ca72
/usr/lib/.build-id/c7
/usr/lib/.build-id/c7/505652d2a4f3adf6f2b0c56bb01432cb183552
/usr/lib/.build-id/f2
/usr/lib/.build-id/f2/1f9dae98d5c016d59a2dbaf26040bdccb8d6e8
/usr/lib/.build-id/f5
/usr/lib/.build-id/f5/4cbafdfe8dbebc3425c02352359b4dabc557b0
/usr/lib/libfsm.so.0
/usr/lib/libfsm.so.0.0.0
/usr/lib/libragel.so.0
/usr/lib/libragel.so.0.0.0
/usr/share/doc/ragel
/usr/share/doc/ragel/CREDITS
/usr/share/doc/ragel/ChangeLog
/usr/share/licenses/ragel
/usr/share/licenses/ragel/COPYING
/usr/share/man/man1/ragel.1.gz
/usr/share/ragel.lm
/usr/share/vim
/usr/share/vim/vimfiles
/usr/share/vim/vimfiles/syntax
/usr/share/vim/vimfiles/syntax/ragel.vim
/usr/bin/ragel
/usr/bin/ragel-asm
/usr/bin/ragel-c
/usr/bin/ragel-crack
/usr/bin/ragel-csharp
/usr/bin/ragel-d
/usr/bin/ragel-go
/usr/bin/ragel-java
/usr/bin/ragel-js
/usr/bin/ragel-julia
/usr/bin/ragel-ocaml
/usr/bin/ragel-ruby
/usr/bin/ragel-rust
/usr/lib/.build-id
/usr/lib/.build-id/10
/usr/lib/.build-id/10/ec7383ad9f3de6c559e7f5423e11d8a9ae07ae
/usr/lib/.build-id/1f
/usr/lib/.build-id/1f/571bbb20a4ee63e5f59e7d5a87f1f2bd7febd8
/usr/lib/.build-id/22
/usr/lib/.build-id/22/308c94bed86200431f033e672c9731b44dd4da
/usr/lib/.build-id/25
/usr/lib/.build-id/25/9a7ef8a7ad427111ff126c1f699d636d8fa7a5
/usr/lib/.build-id/32
/usr/lib/.build-id/32/bd5ecbfadbc48e985a352722113e80a827c88a
/usr/lib/.build-id/70
/usr/lib/.build-id/70/3406b5434c723fee7a604a84b6cd20ba5ecb71
/usr/lib/.build-id/7b
/usr/lib/.build-id/7b/92f1f358e72d921f5456017da1bc2469f114d9
/usr/lib/.build-id/90
/usr/lib/.build-id/90/755a7d383ce479eacf202dbdd928891ad58782
/usr/lib/.build-id/9a
/usr/lib/.build-id/9a/e8953c8de1542da8e8a7890a1bceed5bb041ec
/usr/lib/.build-id/9e
/usr/lib/.build-id/9e/c18f5ce464b5c457a0911e15e988e32ebf7ce8
/usr/lib/.build-id/a4
/usr/lib/.build-id/a4/e203aafc703404d3630411531ae19778175108
/usr/lib/.build-id/ae
/usr/lib/.build-id/ae/574c2b3a7f6beeeec038db82c7b4ab98363552
/usr/lib/.build-id/c4
/usr/lib/.build-id/c4/40e8491d71b535be4e1ea4f63e1c363e862af9
/usr/lib/.build-id/f2
/usr/lib/.build-id/f2/e74f5f3b42a173fe26550d40e009f7b937264c
/usr/lib/.build-id/f4
/usr/lib/.build-id/f4/881f6f77c2c93c30ff6cb2ee3a213b9812a865
/usr/lib64/libfsm.so.0
/usr/lib64/libfsm.so.0.0.0
/usr/lib64/libragel.so.0
/usr/lib64/libragel.so.0.0.0
/usr/share/doc/ragel
/usr/share/doc/ragel/CREDITS
/usr/share/doc/ragel/ChangeLog
/usr/share/licenses/ragel
/usr/share/licenses/ragel/COPYING
/usr/share/man/man1/ragel.1.gz
/usr/share/ragel.lm
/usr/share/vim
/usr/share/vim/vimfiles
/usr/share/vim/vimfiles/syntax
/usr/share/vim/vimfiles/syntax/ragel.vim

References

Summary

In this tutorial we learn how to install ragel on Fedora 34 using yum and dnf.