How To Install mksh on Fedora 36

In this tutorial we learn how to install mksh in Fedora 36. mksh is MirBSD enhanced version of the Korn Shell

Introduction

In this tutorial we learn how to install mksh on Fedora 36.

What is mksh

mksh is the MirBSD enhanced version of the Public Domain Korn shell (pdksh), a bourne-compatible shell which is largely similar to the original AT&T Korn shell. It includes bug fixes and feature improvements in order to produce a modern, robust shell good for interactive and especially script use, being a bourne shell replacement, pdksh successor and an alternative to the C shell.

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

Install mksh on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install mksh using dnf by running the following command:

sudo dnf -y install mksh

Install mksh on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install mksh using yum by running the following command:

sudo yum -y install mksh

How To Uninstall mksh on Fedora 36

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

sudo dnf remove mksh

mksh Package Contents on Fedora 36

/etc/mkshrc
/etc/skel/.mkshrc
/usr/bin/ksh
/usr/bin/lksh
/usr/bin/mksh
/usr/bin/rksh
/usr/bin/rlksh
/usr/bin/rmksh
/usr/lib/.build-id
/usr/lib/.build-id/5f
/usr/lib/.build-id/5f/a89160e00d50d667e9c96bebc728f6371ce375
/usr/lib/.build-id/b2
/usr/lib/.build-id/b2/33f5d7eb7b4de2608375e6a4fe581c4e758544
/usr/share/doc/mksh
/usr/share/doc/mksh/FAQ.htm
/usr/share/doc/mksh/dot.mkshrc
/usr/share/man/man1/ksh.1.gz
/usr/share/man/man1/lksh.1.gz
/usr/share/man/man1/mksh.1.gz
/usr/share/man/man1/rksh.1.gz
/usr/share/man/man1/rlksh.1.gz
/usr/share/man/man1/rmksh.1.gz

References

Summary

In this tutorial we learn how to install mksh on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).