# Install ksh93 with Homebrew, MacPorts, pacman, apt, dnf, Nix, zypper

KornShell, ksh93. Version 1.0.10 via Homebrew; verified from local package data. Also installable with pacman: sudo pacman -S ksh.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install ksh93
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ksh93
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

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

- Nix (92%):

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

  Evidence: 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
```

  Evidence: openSUSE Tumbleweed package metadata: ksh from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## Package facts

- **Package key:** brew:ksh93
- **Package manager:** Homebrew
- **Version:** 1.0.10
- **Source summary:** KornShell, ksh93
- **Homepage:** <https://github.com/ksh93/ksh>
- **Repository:** <https://github.com/ksh93/ksh>
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- ksh (alias)
- ksh93 (alias)
- rksh (alias)
- rksh93 (alias)
- shcomp (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 1.0.10
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

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


## Security Notes

generalized runtime or code generation signal.

- **Geiger risk:** yellow / medium
- generalized runtime or code generation signal

## Other Package-Manager Records

- 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-10.fc45: 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | The Original ATT Korn Shell | http://www.kornshell.com/
- zypper - ksh - 93vu-13.3: installed executable or alias match | openSUSE Tumbleweed package metadata: ksh from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Korn Shell | http://www.research.att.com/~gsf/download/
- zypper - ksh-devel - 93vu-13.3: installed executable or alias match | openSUSE Tumbleweed package metadata: ksh-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Korn Shell development environment | http://www.research.att.com/~gsf/download/


## Combined YAML source

View the package source record on GitHub. [combined/ksh93.yml](https://github.com/mxcl/pkgdb/blob/main/combined/ksh93.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
