How To Install mksh on Fedora 34
Introduction
In this tutorial we learn how to install mksh
on Fedora 34.
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 34. In this tutorial we discuss both methods but you only need to choose one of method to install mksh.
Install mksh 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 mksh
using dnf
by running the following command:
sudo dnf -y install mksh
Install mksh 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 mksh
using yum
by running the following command:
sudo yum -y install mksh
How To Uninstall mksh on Fedora 34
To uninstall only the mksh
package we can use the following command:
sudo dnf remove mksh
mksh Package Contents on Fedora 34
/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/9e
/usr/lib/.build-id/9e/d114ef34c811afd76d66b88b4df566c986d8a6
/usr/lib/.build-id/ce
/usr/lib/.build-id/ce/ed93b6d974e1022645da640da156cf7868c6b5
/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 34 using yum and dnf.