How To Install gawk.x86_64 on Amazon Linux 2

In this tutorial we learn how to install gawk.x86_64 in Amazon Linux 2. gawk.x86_64 is The GNU version of the awk text processing utility

Introduction

In this tutorial we learn how to install gawk.x86_64 on Amazon Linux 2.

What is gawk.x86_64

The gawk package contains the GNU version of awk, a text processing utility. Awk interprets a special-purpose programming language to do quick and easy text pattern matching and reformatting jobs. Install the gawk package if you need a text processing utility. Gawk is considered to be a standard Linux tool for processing text.

We can use yum to install gawk.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install gawk.x86_64.

Install gawk.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install gawk.x86_64 using yum by running the following command:

sudo yum -y install gawk.x86_64

How To Uninstall gawk.x86_64 on Amazon Linux 2

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

sudo yum remove gawk.x86_64

gawk.x86_64 Package Contents on Amazon Linux 2

/usr/bin/awk
/usr/bin/dgawk
/usr/bin/gawk
/usr/bin/igawk
/usr/bin/pgawk
/usr/libexec/awk
/usr/libexec/awk/grcat
/usr/libexec/awk/pwcat
/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/join.awk
/usr/share/awk/libintl.awk
/usr/share/awk/noassign.awk
/usr/share/awk/ord.awk
/usr/share/awk/passwd.awk
/usr/share/awk/quicksort.awk
/usr/share/awk/readable.awk
/usr/share/awk/rewind.awk
/usr/share/awk/round.awk
/usr/share/awk/strtonum.awk
/usr/share/awk/walkarray.awk
/usr/share/awk/zerofile.awk
/usr/share/doc/gawk-4.0.2
/usr/share/doc/gawk-4.0.2/COPYING
/usr/share/doc/gawk-4.0.2/FUTURES
/usr/share/doc/gawk-4.0.2/LIMITATIONS
/usr/share/doc/gawk-4.0.2/NEWS
/usr/share/doc/gawk-4.0.2/POSIX.STD
/usr/share/doc/gawk-4.0.2/README
/usr/share/doc/gawk-4.0.2/README.multibyte
/usr/share/doc/gawk-4.0.2/README.tests
/usr/share/info/gawk.info.gz
/usr/share/info/gawkinet.info.gz
/usr/share/locale/da/LC_MESSAGES/gawk.mo
/usr/share/locale/de/LC_MESSAGES/gawk.mo
/usr/share/locale/es/LC_MESSAGES/gawk.mo
/usr/share/locale/fi/LC_MESSAGES/gawk.mo
/usr/share/locale/fr/LC_MESSAGES/gawk.mo
/usr/share/locale/it/LC_MESSAGES/gawk.mo
/usr/share/locale/ja/LC_MESSAGES/gawk.mo
/usr/share/locale/nl/LC_MESSAGES/gawk.mo
/usr/share/locale/pl/LC_MESSAGES/gawk.mo
/usr/share/locale/sv/LC_MESSAGES/gawk.mo
/usr/share/locale/vi/LC_MESSAGES/gawk.mo
/usr/share/man/man1/awk.1.gz
/usr/share/man/man1/dgawk.1.gz
/usr/share/man/man1/gawk.1.gz
/usr/share/man/man1/igawk.1.gz
/usr/share/man/man1/pgawk.1.gz

References

Summary

In this tutorial we learn how to install gawk.x86_64 on Amazon Linux 2 using yum.