How To Install ksh.x86_64 on Amazon Linux 2

In this tutorial we learn how to install ksh.x86_64 in Amazon Linux 2. ksh.x86_64 is The Original ATT Korn Shell

Introduction

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

What is ksh.x86_64

KSH-93 is the most recent version of the KornShell by David Korn of AT&T Bell Laboratories. KornShell is a shell programming language, which is upward compatible with “sh” (the Bourne Shell).

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

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

sudo yum -y install ksh.x86_64

How To Uninstall ksh.x86_64 on Amazon Linux 2

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

sudo yum remove ksh.x86_64

ksh.x86_64 Package Contents on Amazon Linux 2

/etc/binfmt.d/kshcomp.conf
/etc/kshrc
/etc/skel/.kshrc
/usr/bin/ksh
/usr/bin/shcomp
/usr/share/doc/ksh-20120801
/usr/share/doc/ksh-20120801/COMPATIBILITY
/usr/share/doc/ksh-20120801/RELEASE
/usr/share/doc/ksh-20120801/TYPES
/usr/share/man/man1/ksh.1.gz

References

Summary

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