# 使用 Homebrew, MacPorts, pacman, apt, dnf, Nix, zypper 安装 ksh93

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

## 安装

```sh
sudo av install brew:ksh93
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ksh93
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ksh93
```

  证据: MacPorts ports tree: shells/ksh93/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- pacman (92%):

```sh
sudo pacman -S ksh
```

  证据: Arch Linux sync databases: ksh from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- Debian apt (92%):

```sh
sudo apt install ksh
```

  证据: Debian stable package indexes: ksh from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install ksh
```

  证据: Fedora Rawhide package metadata: ksh from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#ksh
```

  证据: nixpkgs package indexes: pkgs/by-name/ks/ksh/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- zypper (92%):

```sh
sudo zypper install ksh
```

  证据: openSUSE Tumbleweed package metadata: ksh from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## 软件包事实

- **软件包键:** brew:ksh93
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/ksh93>
- **版本:** 1.0.10
- **来源摘要:** KornShell, ksh93
- **主页:** <https://github.com/ksh93/ksh>
- **仓库:** <https://github.com/ksh93/ksh>
- **上游文档:** <https://github.com/ksh93/ksh#readme>
- **许可证:** EPL-2.0
- **源码归档:** <https://github.com/ksh93/ksh/archive/refs/tags/v1.0.10.tar.gz>
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- ksh (cli)
- ksh93 (cli)
- rksh (cli)
- rksh93 (cli)
- shcomp (cli)
- ksh (别名)
- ksh93 (别名)
- rksh (别名)
- rksh93 (别名)
- shcomp (别名)

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 1.0.10
- 本地数据: OK
- 上游仓库: https://github.com/ksh93/ksh
- 检测到的最新版本: v1.0.10 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

KornShell 93 is the KSH-93 line of David Korn's KornShell language, carried forward as a Unix shell, scripting language, and POSIX-oriented command environment. The Homebrew ksh93 package points at the community 93u+m continuation, which is based on AT&T's last stable 93u+ release dated 2012-08-01.

### 项目历史

The ksh93 README republishes the 1993 AT&T description of KSH-93 as the version of the KornShell language described in The KornShell Command and Programming Language, compatible with Bourne shell scripts and intended to conform to the IEEE POSIX shell and utilities standard. That lineage made ksh93 both a production Unix shell and a language-runtime package with features beyond traditional sh.

The ksh93/ksh project began as a community reboot from AT&T AST sources after an attempted 2017-2020 ksh2020 refactoring effort was abandoned. The maintainers chose the older stable 93u+ code as the base and backported fixes from ksh2020, distribution patches from OpenSUSE, Red Hat, and Solaris, and new community fixes.

### 采用历史

KornShell has long been part of commercial and open Unix culture, especially where POSIX shell compatibility, stronger scripting features, and historical vendor scripts mattered. The 93u+m README notes that Debian and Slackware began packaging 93u+m as their default ksh93 version in late 2021, marking the community fork's transition from preservation project to distro-consumed shell.

### 使用方式

Users run ksh93 as an interactive shell, as a /bin/sh-compatible scripting engine, and through related tools such as rksh and shcomp. It matters most where shell-language compatibility, arithmetic and scripting features, or existing ksh scripts are more important than using bash or zsh.

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

ksh93 is package-nerd significant because it is not just another shell binary: it is a maintained survival path for AT&T AST code, legacy KornShell scripts, POSIX conformance work, and old Unix assumptions that still surface in modern distributions.

### 时间线

- 1993: AT&T described KSH-93 as the KornShell language release aligned with the POSIX shell and utilities standard.
- 2012-08-01: AT&T's stable ksh93u+ release became the base for the later 93u+m community reboot.
- 2017-2020: The ksh2020 refactoring attempt tried to revive the unstable 93v- beta line and was later abandoned.
- Late 2021: Debian and Slackware began packaging ksh 93u+m as their default ksh93 version.

### Related projects

- Related projects and lineages include the Bourne shell, POSIX sh, KSH-88, AT&T AST, ksh2020, bash, and zsh.

### 来源

- <https://github.com/ksh93/ksh>
- <https://github.com/ksh93/ksh/releases>
- <https://www.kornshell.com/>


## 安全说明

generalized runtime or code generation signal.

- **Geiger 风险:** yellow / 中
- generalized runtime or code generation signal

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** ksh93
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 其他软件包管理器记录

- pacman - ksh - 2020.0.0-3: normalized package name match | Arch Linux sync databases: ksh from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | The Original AT&T Korn Shell | http://kornshell.org/
- MacPorts - ksh93: normalized package name match | MacPorts ports tree: shells/ksh93/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- MacPorts - ksh: installed executable or alias match | MacPorts ports tree: shells/ksh/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Debian apt - ksh - 20240113-1.0.10-2: installed executable or alias match | Debian stable package indexes: ksh from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | transitional package | http://www.kornshell.com/
- Nix - ksh: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/ks/ksh/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - ksh - 20240113: installed executable or alias match | Ubuntu 24.04 LTS package indexes: ksh from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | transitional package | http://www.kornshell.com/
- dnf - ksh - 1.0.10-8.fc44: installed executable or alias match | Fedora Rawhide package metadata: ksh from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | The Original ATT Korn Shell | http://www.kornshell.com/
- zypper - ksh - 93vu-12.4: installed executable or alias match | openSUSE Tumbleweed package metadata: ksh from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Korn Shell | http://www.research.att.com/~gsf/download/
- zypper - ksh-devel - 93vu-12.4: installed executable or alias match | openSUSE Tumbleweed package metadata: ksh-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Korn Shell development environment | http://www.research.att.com/~gsf/download/


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://www.automicvault.com/zh-hans/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://www.automicvault.com/zh-hans/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [mksh](https://www.automicvault.com/zh-hans/pkg/brew/mksh/) - Shares av.db curated category or tags: cli, language-runtime, scripting, shell, unix.
- [oils-for-unix](https://www.automicvault.com/zh-hans/pkg/brew/oils-for-unix/) - Shares av.db curated category or tags: cli, language-runtime, shell.
- [ammonite-repl](https://www.automicvault.com/zh-hans/pkg/brew/ammonite-repl/) - Shares av.db curated category or tags: cli, language-runtime, scripting.
- [cpi](https://www.automicvault.com/zh-hans/pkg/brew/cpi/) - Shares av.db curated category or tags: cli, language-runtime, scripting.
- [gauche](https://www.automicvault.com/zh-hans/pkg/brew/gauche/) - Shares av.db curated category or tags: cli, language-runtime, scripting.
- [gnu-apl](https://www.automicvault.com/zh-hans/pkg/brew/gnu-apl/) - Shares av.db curated category or tags: cli, language-runtime, scripting.
- [gnu-smalltalk](https://www.automicvault.com/zh-hans/pkg/brew/gnu-smalltalk/) - Shares av.db curated category or tags: cli, language-runtime, scripting.
- [gosu](https://www.automicvault.com/zh-hans/pkg/brew/gosu/) - Shares av.db curated category or tags: cli, language-runtime, scripting.
- [n](https://www.automicvault.com/zh-hans/pkg/brew/n/) - Local package facts share a topical domain. Shared terms: cli, language, language-runtime, runtime, shell.
- [plenv](https://www.automicvault.com/zh-hans/pkg/brew/plenv/) - Local package facts share a topical domain. Shared terms: cli, language, language-runtime, runtime, shell.
- [pyenv](https://www.automicvault.com/zh-hans/pkg/brew/pyenv/) - Local package facts share a topical domain. Shared terms: cli, language, language-runtime, runtime, shell.

## Combined YAML source

View the package source record on GitHub. [combined/ksh93.yml](https://github.com/automic-vault/db/blob/main/combined/ksh93.yml)


## 来源

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