How To Install mksh on Rocky Linux 8
Introduction
In this tutorial we learn how to install mksh
on Rocky Linux 8.
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 Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install mksh.
Install mksh on Rocky Linux 8 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 Rocky Linux 8 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 Rocky Linux 8
To uninstall only the mksh
package we can use the following command:
sudo dnf remove mksh
mksh Package Contents on Rocky Linux 8
/bin/ksh
/etc/mkshrc
/etc/skel/.mkshrc
/usr/bin/lksh
/usr/bin/mksh
/usr/lib/.build-id
/usr/lib/.build-id/a9
/usr/lib/.build-id/a9/266e7b809b69a09ca7a8611caebdb15b3f1cb8
/usr/lib/.build-id/f3
/usr/lib/.build-id/f3/67c346753fc5f45d17f5743d06c01ff1d91bbb
/usr/share/doc/mksh
/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
References
Summary
In this tutorial we learn how to install mksh
on Rocky Linux 8 using yum and dnf.