Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, dnf, MacPorts, Nix, zypper 安装 mksh

查看 mksh 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install mksh

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install mksh

MacPorts ports tree · shells/mksh/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add mksh

Alpine Linux edge package indexes · mksh · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install mksh

Debian stable package indexes · mksh · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install mksh

Fedora Rawhide package metadata · mksh · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#mksh

nixpkgs package indexes · pkgs/by-name/mk/mksh/package.nix · 来源: api.github.com

openSUSE zypper已验证 · 92%
sudo zypper install mksh

openSUSE Tumbleweed package metadata · mksh · 来源: download.opensuse.org

概览

软件包摘要

MirBSD Korn Shell

命令和别名

  • mksh

历史

项目历史与用法

mksh, the MirBSD Korn Shell, is a Bourne/POSIX/Korn-style command interpreter and scripting language. The official site describes it as an actively developed free implementation of the Korn Shell programming language and successor to the Public Domain Korn Shell line.

项目历史

The mksh FAQ traces the lineage from the Public Domain Bourne Shell and pdksh, through OpenBSD cleanup work, to MirBSD development beginning in 2002. After 2004, development added portability, parser reorganization, bug fixes, and features influenced by ksh93, bash, zsh, BSD csh, and POSIX work.

The official mksh page lists R59c from October 31, 2020 as the current version and provides signed source distributions plus instructions for CVS HEAD.

采用历史

mksh became the system shell in several operating systems and Linux distributions. The FAQ says it is used as Android's system shell for startup, background, and user-invoked commands.

Its broad packaging footprint across Homebrew, Debian, Ubuntu, Alpine, Fedora, Nix, MacPorts, and SUSE reflects a mature portable shell rather than a platform-specific utility.

使用方式

The mksh manual describes it as a command interpreter for both interactive and shell-script use, with a command language that is a superset of sh and POSIX shell and largely compatible with the original Korn shell.

Interactive users normally use `~/.mkshrc` or `$ENV`; login shells also process profile files. Packagers commonly install `dot.mkshrc` into `/etc/skel/.mkshrc` or `/etc/mkshrc` with a user-editable wrapper.

为什么软件包爱好者会关心

mksh matters to package nerds because shells sit at the boundary between user environment, system boot scripts, and package maintainer scripts. It is a small but consequential runtime whose packaging choices affect `/bin/sh` compatibility, skeleton rc files, Android system behavior, and historical Korn shell compatibility.

It is also a case where the official project explicitly labels its GitHub mirror unofficial, so package metadata should prefer the MirBSD homepage, signed distfiles, manual, FAQ, and CVS/CVSweb sources.

时间线

  • 1980s: Public Domain Bourne Shell lineage begins, later becoming pdksh.
  • 1999: pdksh development ends.
  • 2002: Development of what became mksh starts as MirBSD's system shell.
  • 2003: OpenBSD cleanup of pdksh feeds into the lineage.
  • 2004: mksh sees independent parser, portability, and feature work.
  • 2020-10: Official page lists mksh R59c as current.

Related projects

  • mksh is related to pdksh, oksh, AT&T ksh/ksh93, POSIX sh, bash, zsh, lksh, Android system shell usage, MirBSD, Debian, and OpenWrt/FreeWRT packaging.

安全态势

风险级别:yellow

generalized runtime or code generation signal.

风险分类器

yellow 风险 · 中 置信度 · runtime

原因

  • generalized runtime or code generation signal

信号

  • text:shell

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 13 个平台目标。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Linux
/etc/skel/.mkshrc/etc/mkshrc
Unix
~/.mkshrc~/.profile/etc/profile/etc/suid_profile/etc/shells

可执行文件

已安装的可执行文件

命令类型暴露范围备注
mkshcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-08
管理器版本59c
管理器更新时间
本地数据OK
上游not checked
检测到的最新版本未检测到

https://mbsd.evolvis.org/mksh.htm

  • 信息No package-manager update timestamp was available.低 置信度
  • 信息Release/tag comparison is only available for GitHub repositories.https://mbsd.evolvis.org/mksh.htmnone 置信度

安装元数据

软件包元数据

软件包键brew:mksh
版本59c
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/mksh
主页https://mbsd.evolvis.org/mksh.htm
仓库https://www.mirbsd.org/cvs.cgi/src/bin/mksh
上游文档https://mbsd.evolvis.org/mksh.htm
许可证MirOS
源码归档https://mbsd.evolvis.org/MirOS/dist/mir/mksh/mksh-R59c.tgz
Bottle可用 (于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namemksh
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

mksh 59c-41+b2

MirBSD Korn Shell

http://mirbsd.de/mksh

sudo apt install mksh
  • Section: shells
  • Architecture: amd64
  • Source Package: mksh
  • 1 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Mksh
Debian stable package indexes · deb.debian.org · Debian stable package indexes: mksh from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

mksh

nix profile install nixpkgs#mksh
  • normalized package name match
  • 匹配方式:Mksh
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/mk/mksh/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

mksh 59c-37

MirBSD Korn Shell

http://mirbsd.de/mksh

sudo apt install mksh
  • Section: universe/shells
  • Architecture: amd64
  • 1 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Mksh
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: mksh from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

mksh 59c-r4

MirBSD Korn Shell

https://www.mirbsd.org/mksh

sudo apk add mksh
  • License: MirOS AND Unicode-DFS-2016
  • Architecture: x86_64
  • Source Package: mksh
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Mksh
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: mksh from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

mksh-doc 59c-r4

MirBSD Korn Shell (documentation)

https://www.mirbsd.org/mksh

sudo apk add mksh-doc
  • License: MirOS AND Unicode-DFS-2016
  • Architecture: x86_64
  • Source Package: mksh
  • normalized package name match
  • 匹配方式:Mksh
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: mksh-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
dnf95%

mksh 59c-15.fc44

MirBSD enhanced version of the Korn Shell

https://www.mirbsd.org/mksh.htm

sudo dnf install mksh
  • License: MirOS AND ISC
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: mksh
  • 7 依赖
  • 8 提供
  • normalized package name match
  • 匹配方式:Mksh
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: mksh from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
zypper95%

mksh 59c-7.1

MirBSD Korn Shell

https://mbsd.evolvis.org/mksh.htm

sudo zypper install mksh
  • License: ISC AND MirOS
  • Category: System/Shells
  • Architecture: x86_64
  • Source Package: mksh
  • 2 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Mksh
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: mksh from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

mksh

sudo port install mksh
  • normalized package name match
  • 匹配方式:Mksh
MacPorts ports tree · api.github.com · MacPorts ports tree: shells/mksh/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment