How To Install gawk on Fedora 34

gawk is The GNU version of the AWK text processing utility The GNU version of the AWK text processing utility

Introduction

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

What is gawk

The gawk package contains the GNU version of AWK text processing utility. AWK is a programming language designed for text processing and typically used as a data extraction and reporting tool. The gawk utility can be used to do quick and easy text pattern matching, extracting or reformatting. It is considered to be a standard Linux tool for text processing. gawk 5.1.0 3.fc34 i686 995 k gawk-5.1.0-3.fc34.src.rpm fedora The GNU version of the AWK text processing utility https GPLv3+ and GPLv2+ and LGPLv2+ and BSD The gawk package contains the GNU version of AWK text processing utility. AWK is a programming language designed for text processing and typically used as a data extraction and reporting tool. The gawk utility can be used to do quick and easy text pattern matching, extracting or reformatting. It is considered to be a standard Linux tool for text processing.

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

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

sudo dnf -y install gawk

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

sudo yum -y install gawk

How To Uninstall gawk on Fedora 34

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

sudo dnf remove gawk

gawk Package Contents on Fedora 34

/etc/profile.d/gawk.csh
/etc/profile.d/gawk.sh
/usr/bin/awk
/usr/bin/gawk
/usr/lib/.build-id
/usr/lib/.build-id/05
/usr/lib/.build-id/05/6faf9a18dde165ebc39d9126919eb6594054d5
/usr/lib/.build-id/0d
/usr/lib/.build-id/0d/211fc92a4aca37a700d9cb4ff6f57e6a3b5758
/usr/lib/.build-id/0d/cc92c671dc4ffbfb43ff4eb5c3b46f1932e9b6
/usr/lib/.build-id/12
/usr/lib/.build-id/12/3b9125f1717d0238d0e56f65971eefa314dd99
/usr/lib/.build-id/17
/usr/lib/.build-id/17/a93fb5a10508fbccbcd6b842b0cd364476b517
/usr/lib/.build-id/3d
/usr/lib/.build-id/3d/13bd12c007d81384e346ee5a73189fb952eb54
/usr/lib/.build-id/54
/usr/lib/.build-id/54/4a8ea94e066543e281349abffdcb09dc3b0415
/usr/lib/.build-id/69
/usr/lib/.build-id/69/4d4621734234ff48b14e920802416f8c162923
/usr/lib/.build-id/a5
/usr/lib/.build-id/a5/bbec1f335ff4966401c5a75338158fbe911ca5
/usr/lib/.build-id/ab
/usr/lib/.build-id/ab/6c113e205b6385e2dbcf552aa1a7a8b5430617
/usr/lib/.build-id/c0
/usr/lib/.build-id/c0/2b9600a19fb6a329c3c811b70091e609a9cbec
/usr/lib/.build-id/d7
/usr/lib/.build-id/d7/2102c019e3563224cd311efae6a5b2750e504d
/usr/lib/.build-id/d8
/usr/lib/.build-id/d8/753decbec12b81f66d799ac5e0a71fd40cbc38
/usr/lib/.build-id/e2
/usr/lib/.build-id/e2/c0b711b7f0b553a0f863e33bd8f4f0cc4ebe09
/usr/lib/.build-id/e8
/usr/lib/.build-id/e8/db03119ef718ae3fb922d4a10640c01c235c7f
/usr/lib/gawk
/usr/lib/gawk/filefuncs.so
/usr/lib/gawk/fnmatch.so
/usr/lib/gawk/fork.so
/usr/lib/gawk/inplace.so
/usr/lib/gawk/intdiv.so
/usr/lib/gawk/ordchr.so
/usr/lib/gawk/readdir.so
/usr/lib/gawk/readfile.so
/usr/lib/gawk/revoutput.so
/usr/lib/gawk/revtwoway.so
/usr/lib/gawk/rwarray.so
/usr/lib/gawk/time.so
/usr/libexec/awk
/usr/libexec/awk/grcat
/usr/libexec/awk/pwcat
/usr/libexec/gawk
/usr/share/awk
/usr/share/awk/assert.awk
/usr/share/awk/bits2str.awk
/usr/share/awk/cliff_rand.awk
/usr/share/awk/ctime.awk
/usr/share/awk/ftrans.awk
/usr/share/awk/getopt.awk
/usr/share/awk/gettime.awk
/usr/share/awk/group.awk
/usr/share/awk/have_mpfr.awk
/usr/share/awk/inplace.awk
/usr/share/awk/intdiv0.awk
/usr/share/awk/join.awk
/usr/share/awk/libintl.awk
/usr/share/awk/noassign.awk
/usr/share/awk/ns_passwd.awk
/usr/share/awk/ord.awk
/usr/share/awk/passwd.awk
/usr/share/awk/processarray.awk
/usr/share/awk/quicksort.awk
/usr/share/awk/readable.awk
/usr/share/awk/readfile.awk
/usr/share/awk/rewind.awk
/usr/share/awk/round.awk
/usr/share/awk/shellquote.awk
/usr/share/awk/strtonum.awk
/usr/share/awk/walkarray.awk
/usr/share/awk/zerofile.awk
/usr/share/doc/gawk
/usr/share/doc/gawk/NEWS
/usr/share/doc/gawk/POSIX.STD
/usr/share/doc/gawk/README
/usr/share/doc/gawk/README.multibyte
/usr/share/gawk
/usr/share/info/gawk.info.gz
/usr/share/info/gawkinet.info.gz
/usr/share/info/gawkworkflow.info.gz
/usr/share/licenses/gawk
/usr/share/licenses/gawk/COPYING
/usr/share/licenses/gawk/LICENSE.BSD
/usr/share/licenses/gawk/LICENSE.GPLv2
/usr/share/licenses/gawk/LICENSE.LGPLv2
/usr/share/man/man1/awk.1.gz
/usr/share/man/man1/gawk.1.gz
/usr/share/man/man3/filefuncs.3am.gz
/usr/share/man/man3/fnmatch.3am.gz
/usr/share/man/man3/fork.3am.gz
/usr/share/man/man3/inplace.3am.gz
/usr/share/man/man3/ordchr.3am.gz
/usr/share/man/man3/readdir.3am.gz
/usr/share/man/man3/readfile.3am.gz
/usr/share/man/man3/revoutput.3am.gz
/usr/share/man/man3/revtwoway.3am.gz
/usr/share/man/man3/rwarray.3am.gz
/usr/share/man/man3/time.3am.gz
/etc/profile.d/gawk.csh
/etc/profile.d/gawk.sh
/usr/bin/awk
/usr/bin/gawk
/usr/lib/.build-id
/usr/lib/.build-id/0b
/usr/lib/.build-id/0b/8267088003894a691cb7f8c77a49b44c2e96e1
/usr/lib/.build-id/16
/usr/lib/.build-id/16/555c6ad56ad4d85d1a78f44fd315f233eca16a
/usr/lib/.build-id/21
/usr/lib/.build-id/21/e45caa557105d181f009ee1308497b71abda0e
/usr/lib/.build-id/36
/usr/lib/.build-id/36/0c2d5025af43c0783f855b5e1d0ed63a77b64d
/usr/lib/.build-id/4c
/usr/lib/.build-id/4c/268145123f7fbb663616cf215f5ae9933ffabf
/usr/lib/.build-id/50
/usr/lib/.build-id/50/e7115f6ed3138fb8a36ea0f738385d7b56469b
/usr/lib/.build-id/74
/usr/lib/.build-id/74/6f47680b34c1742c94551c4e21be3e0a78ced7
/usr/lib/.build-id/83
/usr/lib/.build-id/83/863f8933b2482876fa45c9e763eca4ed3b9c7c
/usr/lib/.build-id/94
/usr/lib/.build-id/94/e42cdbaf402c38d24bc320d9e3f3a0c55b454e
/usr/lib/.build-id/95
/usr/lib/.build-id/95/a0973de145743646735453cd4a699bff57d990
/usr/lib/.build-id/98
/usr/lib/.build-id/98/58f6cdeb90c6ca6b4e7c90d49b50ddffe9e8a3
/usr/lib/.build-id/99
/usr/lib/.build-id/99/8b6575700d090d8494e50be2033dbd74eb421b
/usr/lib/.build-id/cc
/usr/lib/.build-id/cc/88cf664b945390e4ef7bef7fce8d1277205a37
/usr/lib/.build-id/dc
/usr/lib/.build-id/dc/be3fc9498893b486a57580a361a89b9984fbd8
/usr/lib/.build-id/e1
/usr/lib/.build-id/e1/9238e18003a23885615d29ab53d540abdee471
/usr/lib64/gawk
/usr/lib64/gawk/filefuncs.so
/usr/lib64/gawk/fnmatch.so
/usr/lib64/gawk/fork.so
/usr/lib64/gawk/inplace.so
/usr/lib64/gawk/intdiv.so
/usr/lib64/gawk/ordchr.so
/usr/lib64/gawk/readdir.so
/usr/lib64/gawk/readfile.so
/usr/lib64/gawk/revoutput.so
/usr/lib64/gawk/revtwoway.so
/usr/lib64/gawk/rwarray.so
/usr/lib64/gawk/time.so
/usr/libexec/awk
/usr/libexec/awk/grcat
/usr/libexec/awk/pwcat
/usr/libexec/gawk
/usr/share/awk
/usr/share/awk/assert.awk
/usr/share/awk/bits2str.awk
/usr/share/awk/cliff_rand.awk
/usr/share/awk/ctime.awk
/usr/share/awk/ftrans.awk
/usr/share/awk/getopt.awk
/usr/share/awk/gettime.awk
/usr/share/awk/group.awk
/usr/share/awk/have_mpfr.awk
/usr/share/awk/inplace.awk
/usr/share/awk/intdiv0.awk
/usr/share/awk/join.awk
/usr/share/awk/libintl.awk
/usr/share/awk/noassign.awk
/usr/share/awk/ns_passwd.awk
/usr/share/awk/ord.awk
/usr/share/awk/passwd.awk
/usr/share/awk/processarray.awk
/usr/share/awk/quicksort.awk
/usr/share/awk/readable.awk
/usr/share/awk/readfile.awk
/usr/share/awk/rewind.awk
/usr/share/awk/round.awk
/usr/share/awk/shellquote.awk
/usr/share/awk/strtonum.awk
/usr/share/awk/walkarray.awk
/usr/share/awk/zerofile.awk
/usr/share/doc/gawk
/usr/share/doc/gawk/NEWS
/usr/share/doc/gawk/POSIX.STD
/usr/share/doc/gawk/README
/usr/share/doc/gawk/README.multibyte
/usr/share/gawk
/usr/share/info/gawk.info.gz
/usr/share/info/gawkinet.info.gz
/usr/share/info/gawkworkflow.info.gz
/usr/share/licenses/gawk
/usr/share/licenses/gawk/COPYING
/usr/share/licenses/gawk/LICENSE.BSD
/usr/share/licenses/gawk/LICENSE.GPLv2
/usr/share/licenses/gawk/LICENSE.LGPLv2
/usr/share/man/man1/awk.1.gz
/usr/share/man/man1/gawk.1.gz
/usr/share/man/man3/filefuncs.3am.gz
/usr/share/man/man3/fnmatch.3am.gz
/usr/share/man/man3/fork.3am.gz
/usr/share/man/man3/inplace.3am.gz
/usr/share/man/man3/ordchr.3am.gz
/usr/share/man/man3/readdir.3am.gz
/usr/share/man/man3/readfile.3am.gz
/usr/share/man/man3/revoutput.3am.gz
/usr/share/man/man3/revtwoway.3am.gz
/usr/share/man/man3/rwarray.3am.gz
/usr/share/man/man3/time.3am.gz

References

Summary

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