How to Install and Uninstall mksh Package on Ubuntu 21.10 (Impish Indri)

Last updated: May 11,2024

1. Install "mksh" package

In this section, we are going to explain the necessary steps to install mksh on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install mksh

2. Uninstall "mksh" package

This tutorial shows how to uninstall mksh on Ubuntu 21.10 (Impish Indri):

$ sudo apt remove mksh $ sudo apt autoclean && sudo apt autoremove

3. Information about the mksh package on Ubuntu 21.10 (Impish Indri)

Package: mksh
Architecture: amd64
Version: 59c-9
Built-Using: dietlibc (= 0.34~cvs20160606-12), gcc-10 (= 10.3.0-4ubuntu1), klibc (= 2.0.8-5ubuntu1), linux (= 5.13.0-11.11), musl (= 1.2.2-1)
Multi-Arch: foreign
Priority: optional
Section: universe/shells
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Thorsten Glaser
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 1490
Depends: libc6 (>= 2.33)
Recommends: ed
Filename: pool/universe/m/mksh/mksh_59c-9_amd64.deb
Size: 577404
MD5sum: 4b98582181ccd99a29c7393a07a0c26f
SHA1: b97a7456276113874ef79e054bfe3a449bdc6866
SHA256: 9ca425b1eaeea5837c7f3a79b4cd646fab289a069bb23eea3cabff133a4034cd
SHA512: 1fe47e9bf7cc9ea91847ea8b109fe153e73e9570443f7f5f24149ac6a4ddbe5f21bf063cb640fb19fec84b640387777d15d2524acc0eb04f25c16afe281f8230
Homepage: http://mirbsd.de/mksh
Description-en: MirBSD Korn Shell
mksh is the successor of the Public Domain Korn shell (pdksh),
a Bourne/POSIX compatible shell which is largely similar to the
original AT&T Korn Shell (ksh88/ksh93).
It includes bug fixes and feature improvements, in order to produce a
modern, robust shell good for interactive and especially script use.
mksh has UTF-8 support (in string operations and the Emacs editing
mode). The code has been cleaned up and simplified, bugs fixed,
standards compliance added, and several enhancements (for extended
compatibility to other modern shells, as well as a couple of its
own) are available.
This shell is Debian Policy 10.4 compliant and works as /bin/sh on
Debian systems (use the /bin/lksh executable) and is a good rescue
and initrd shell (consider the /bin/mksh-static executable).
.
The mksh binary is a complete, full-featured shell. It provides a
“consistent across all platforms” guarantee, using 32-bit integers
for arithmetics, possibly deviating from POSIX.
.
The mksh-static binary is a version of mksh, linked against klibc,
musl, or dietlibc (if they exist for that Debian architecture and
are usable) and optimised for small code size, for example for use
on initrd or initramfs images, installation or rescue systems.
Except for omitting some features to be smaller, it is similar to
the mksh binary otherwise. Note the exact feature set may differ
depending on which C library was used to compile it.
.
The lksh binary is a script shell based on mksh intended to run old
ksh88 and pdksh scripts, but not for interactive use. When used as
/bin/sh it follows POSIX most closely, including use of the host’s
“long” C data type for arithmetics. It also contains kludges so it
can run as /bin/sh on Debian beyond what Policy dictates, to work
around bugs in maintainer scripts and LSB init scripts shipped by
many packages, such as including a rudimentary printf(1) builtin,
permitting a shell function to be named stop overriding the default
alias, more loose interpretation of shell extglobs, etc.
.
A sample ~/.mkshrc is included in /usr/share/doc/mksh/examples and
provided as /etc/mkshrc conffile, which is sourced by another file
/etc/skel/.mkshrc users are recommended to copy into their home.
Description-md5: 4931f730b48566d2590b67efc22e6b63