How To Install libmawk on Fedora 34

libmawk is Embed awk scripting language in any application written in C Embed awk scripting language in any application written in C

Introduction

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

What is libmawk

Libmawk is a fork of mawk 1.3.3 restructured for embedding. This means the user gets libmawk.h and libmawk.so and can embed awk scripting language in any application written in C. libmawk 1.0.2 6.fc34 x86_64 185 k libmawk-1.0.2-6.fc34.src.rpm fedora Embed awk scripting language in any application written in C http GPLv2 Libmawk is a fork of mawk 1.3.3 restructured for embedding. This means the user gets libmawk.h and libmawk.so and can embed awk scripting language in any application written in C.

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

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

sudo dnf -y install libmawk

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

sudo yum -y install libmawk

How To Uninstall libmawk on Fedora 34

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

sudo dnf remove libmawk

libmawk Package Contents on Fedora 34

/usr/bin/lmawk
/usr/lib/.build-id
/usr/lib/.build-id/42
/usr/lib/.build-id/42/2807bdcd8da8408fb6e081281a686169d7f8fe
/usr/lib/.build-id/84
/usr/lib/.build-id/84/1d8133578c35f4f2f152ec4e42deb0bc5e3576
/usr/lib64/libmawk
/usr/lib64/libmawk.so.1
/usr/lib64/libmawk.so.1.0
/usr/lib64/libmawk.so.1.0.2
/usr/lib64/libmawk/lib_array.awk
/usr/lib64/libmawk/lib_ascii.awk
/usr/lib64/libmawk/lib_rand.awk
/usr/share/doc/libmawk
/usr/share/doc/libmawk/AUTHORS
/usr/share/doc/libmawk/README
/usr/share/doc/libmawk/Release_notes
/usr/share/licenses/libmawk
/usr/share/licenses/libmawk/COPYING
/usr/share/man/man1/lmawk.1.gz
/usr/bin/lmawk
/usr/lib/.build-id
/usr/lib/.build-id/a4
/usr/lib/.build-id/a4/cf977e97daf299ffb498a7c7a8ab04fc3989b6
/usr/lib/.build-id/ce
/usr/lib/.build-id/ce/7610a076a8f80903bd5fd92fcf770732353ba1
/usr/lib/libmawk
/usr/lib/libmawk.so.1
/usr/lib/libmawk.so.1.0
/usr/lib/libmawk.so.1.0.2
/usr/lib/libmawk/lib_array.awk
/usr/lib/libmawk/lib_ascii.awk
/usr/lib/libmawk/lib_rand.awk
/usr/share/doc/libmawk
/usr/share/doc/libmawk/AUTHORS
/usr/share/doc/libmawk/README
/usr/share/doc/libmawk/Release_notes
/usr/share/licenses/libmawk
/usr/share/licenses/libmawk/COPYING
/usr/share/man/man1/lmawk.1.gz

References

Summary

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