How To Install kelbt on Fedora 34

kelbt is Backtracking LR Parsing

Introduction

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

What is kelbt

Kelbt generates backtracking LALR(1) parsers. Where traditional LALR(1) parser generators require static resolution of shift/reduce conflicts, Kelbt generates parsers that handle conflicts by backtracking at runtime. Kelbt is able to generate a parser for any context-free grammar that is free of hidden left recursion.

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

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

sudo dnf -y install kelbt

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

sudo yum -y install kelbt

How To Uninstall kelbt on Fedora 34

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

sudo dnf remove kelbt

kelbt Package Contents on Fedora 34

/usr/bin/kelbt
/usr/lib/.build-id
/usr/lib/.build-id/27
/usr/lib/.build-id/27/da8610e51dde707835c9108c861811b3e87247
/usr/share/doc/kelbt
/usr/share/doc/kelbt/ChangeLog
/usr/share/licenses/kelbt
/usr/share/licenses/kelbt/COPYING

References

Summary

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