# xonsh を Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper でインストール

xonsh のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:xonsh
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install xonsh
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install xonsh
```

  証拠: MacPorts ports tree: shells/xonsh/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add xonsh
```

  証拠: Alpine Linux edge package indexes: xonsh from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install xonsh
```

  証拠: Debian stable package indexes: xonsh from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install xonsh
```

  証拠: Fedora Rawhide package metadata: xonsh 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#xonsh
```

  証拠: nixpkgs package indexes: pkgs/by-name/xo/xonsh/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S xonsh
```

  証拠: Arch Linux sync databases: xonsh from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install xonsh
```

  証拠: openSUSE Tumbleweed package metadata: xonsh from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## パッケージ情報

- **パッケージキー:** brew:xonsh
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/xonsh>
- **バージョン:** 0.24.0
- **ソース概要:** Python-powered, cross-platform, Unix-gazing shell language and command prompt
- **ホームページ:** <https://xon.sh>
- **リポジトリ:** <https://github.com/xonsh/xonsh>
- **上流ドキュメント:** <https://xon.sh/contents.html>
- **ライセンス:** BSD-2-Clause-Views
- **ソースアーカイブ:** <https://files.pythonhosted.org/packages/1e/82/a70fcbd8e542a55b990c61707c4f26fd42071badd3c08193931706a10323/xonsh-0.24.0.tar.gz>
- **最終更新:** 2026-07-03T13:30:45Z
- **生成日時:** 2026-07-08T07:18:31+00:00

## 実行可能ファイル

- xonsh (cli)
- xonsh-cat (cli)
- xonsh-uname (cli)
- xonsh-uptime (cli)
- xonsh (エイリアス)
- xonsh-cat (エイリアス)
- xonsh-uname (エイリアス)
- xonsh-uptime (エイリアス)

## 依存関係

- python@3.14

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-07-08
- マネージャ版: 0.24.0
- マネージャ更新日: 2026-07-03
- ローカルデータ: OK
- 上流リポジトリ: https://xon.sh
- 情報: Release/tag comparison is only available for GitHub repositories.
## プロジェクトの歴史と使われ方

Xonsh is a Python-powered shell and command prompt that treats Python as the command language while adding shell syntax for subprocesses, environment handling, path work, tab completion, and prompts. Its package-nerd hook is that it is both an interactive shell and an installable Python ecosystem: users can script with normal Python objects, run ordinary Unix commands, and extend the prompt with xontribs.

The project sits in the same alternative-shell conversation as fish, zsh, IPython, and Nushell, but its distinguishing bet is conservative and unusual: do not invent a completely new programming language when Python can be the shell language.

### プロジェクトの歴史

Anthony Scopatz's FAQ says the idea for xonsh came while reviewing the Bash chapter of Effective Computation in Physics and noticing how much shell practice depends on complex conventions for basic programming constructs. The FAQ frames xonsh as an answer to shells that do not fit the user's brain: Python supplies the familiar programming substrate, while xonsh adds enough shell behavior to make it usable as a daily command prompt.

The GitHub repository was created on 2015-01-21. The documentation and README describe xonsh as a superset of Python 3 with seamless integration of shell functionality and commands, implemented by parsing xonsh code into Python AST nodes and deciding between Python mode and subprocess mode when command-like input is ambiguous.

By 2016 xonsh had enough visibility for talks at PyCon and PyBay and coverage in developer publications. Later official talk listings include SciPy 2019 presentations, showing that the project found an audience among scientific Python, data, and systems users who wanted shell ergonomics without leaving the Python runtime.

### 採用の歴史

Xonsh adoption has been strongest among Python-heavy developers, data scientists, and automation users who already value Python syntax and libraries. The project README explicitly demonstrates running subprocesses, mutating PATH, reading files with Python path literals, loading xontribs, and interop with tools such as Jupyter, Starship, and prompt integrations.

Its adoption pattern is less about replacing POSIX shell everywhere and more about creating a daily-driver shell for people who prefer Python's data structures, imports, and expression syntax. The official docs stress cross-platform support across Linux, macOS, Windows, BSD, Jupyter, Android, Raspberry Pi, WSL, Nix, AppImage, Flatpak, and other environments, which made it a natural package-manager item rather than a single-platform shell experiment.

### 使われ方

Typical use is interactive: set xonsh as a login or terminal shell, keep startup code in xonsh rc files, run normal external commands, and drop into Python expressions when shell text processing would be awkward. The tutorial emphasizes Python-mode versus subprocess-mode, environment variables as Python-accessible values, and explicit subprocess syntax for cases where ambiguity matters.

For automation, xonsh is useful when a task needs both shell pipelines and real Python data handling. Users commonly reach for it to glue command-line tools, JSON output, Python imports, prompt customization, and cross-platform path/environment logic without splitting the workflow between Bash and standalone Python scripts.

### パッケージ好きにとっての重要性

Xonsh is package-nerd significant because it makes the shell itself an application-runtime choice. Installing it changes not just one command but the language used at the prompt, the configuration files a user maintains, and the extension surface exposed through xontribs.

It is also a useful counterexample to the idea that every shell needs its own bespoke scripting language. Xonsh's design shows a different packaging story: ship a shell that borrows the host language's parser, AST, libraries, and package ecosystem, then add only the command-line affordances needed to make it feel native at a terminal.

### タイムライン

- 2015-01-21: The xonsh GitHub repository is created.
- 2016-06: Xonsh is presented at PyCon and covered by developer press.
- 2016-09: A PyBay talk appears in the official talks list.
- 2019-07: Xonsh is presented at SciPy by Anthony Scopatz and Gil Forsyth.
- 2026: The project documentation describes xonsh as a cross-platform Python-based shell with an ecosystem of xontrib extensions.

### Related projects

- Python is the language substrate xonsh extends for shell use.
- IPython is a related Python command-line environment that xonsh explicitly contrasts with in its FAQ.
- fish, zsh, Bash, and Nushell are adjacent shells in the same usability and scripting-design space.
- xontrib packages are the extension layer for prompt integrations, completions, shell interop, and workflow-specific features.

### ソース

- <https://api.github.com/repos/xonsh/xonsh>
- <https://github.com/xonsh/xonsh>
- <https://raw.githubusercontent.com/xonsh/xonsh/main/docs/faq.rst>
- <https://raw.githubusercontent.com/xonsh/xonsh/main/docs/talks_and_articles.rst>
- <https://raw.githubusercontent.com/xonsh/xonsh/main/docs/tutorial.rst>
- <https://xon.sh/>
- <https://xon.sh/contents.html>


## セキュリティノート

generalized runtime or code generation signal.

- **Geiger リスク:** yellow / 中
- generalized runtime or code generation signal


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

- Unix: ~/.xonshrc, ~/.config/xonsh/rc.xsh, /etc/xonsh/xonshrc, ~/.config/xonsh/rc.d/, /etc/xonsh/rc.d/
- Windows: %ALLUSERSPROFILE%\xonsh\xonshrc
## ソースデータベース詳細

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** xonsh
- **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

## 他のパッケージマネージャ記録

- Debian apt - xonsh - 0.19.4+dfsg-1: normalized package name match | Debian stable package indexes: xonsh from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Python-powered, cross-platform, Unix-gazing shell | https://xon.sh/
- Debian apt - xonsh-doc - 0.19.4+dfsg-1: normalized package name match | Debian stable package indexes: xonsh-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Python-powered, cross-platform, Unix-gazing shell (documentation) | https://xon.sh/
- Nix - xonsh: normalized package name match | nixpkgs package indexes: pkgs/by-name/xo/xonsh/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - xonsh - 0.14.4+dfsg-1: normalized package name match | Ubuntu 24.04 LTS package indexes: xonsh from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Python-powered, cross-platform, Unix-gazing shell | https://xon.sh/
- Ubuntu apt - xonsh-doc - 0.14.4+dfsg-1: normalized package name match | Ubuntu 24.04 LTS package indexes: xonsh-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Python-powered, cross-platform, Unix-gazing shell (documentation) | https://xon.sh/
- apk - xonsh - 0.22.8-r0: normalized package name match | Alpine Linux edge package indexes: xonsh from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Python-powered, full-featured and cross-platform shell | https://xon.sh
- apk - xonsh-pyc - 0.22.8-r0: normalized package name match | Alpine Linux edge package indexes: xonsh-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Precompiled Python bytecode for xonsh | https://xon.sh
- dnf - xonsh - 0.23.1-2.fc45: normalized package name match | Fedora Rawhide package metadata: xonsh from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | A general purpose, Python-ish shell | https://xon.sh
- pacman - xonsh - 0.23.8-1: normalized package name match | Arch Linux sync databases: xonsh from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A python-powered shell. Full-featured and cross-platform. | https://xon.sh/
- zypper - xonsh - 0.23.1-1.1: normalized package name match | openSUSE Tumbleweed package metadata: xonsh from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | A general purpose, Python-powered shell | https://xon.sh/
- zypper - xonsh-doc - 0.23.1-1.1: normalized package name match | openSUSE Tumbleweed package metadata: xonsh-doc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Documentation files for xonsh | https://xon.sh/
- MacPorts - xonsh: normalized package name match | MacPorts ports tree: shells/xonsh/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 関連リンク

- [Secret-risk packages](https://www.automicvault.com/ja/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/ja/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/ja/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/ja/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [python@3.14](https://www.automicvault.com/ja/pkg/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [bar](https://www.automicvault.com/ja/pkg/brew/bar/) - Shares av.db curated category or tags: cli, developer-tools, scripting, shell.
- [fish](https://www.automicvault.com/ja/pkg/brew/fish/) - Shares av.db curated category or tags: cli, developer-tools, scripting, shell.
- [powershell](https://www.automicvault.com/ja/pkg/brew/powershell/) - Shares av.db curated category or tags: cli, cross-platform, developer-tools, shell.
- [zsh](https://www.automicvault.com/ja/pkg/brew/zsh/) - Shares av.db curated category or tags: cli, developer-tools, scripting, shell.
- [aliae](https://www.automicvault.com/ja/pkg/brew/aliae/) - Shares av.db curated category or tags: cli, developer-tools, shell.
- [checkbashisms](https://www.automicvault.com/ja/pkg/brew/checkbashisms/) - Shares av.db curated category or tags: cli, developer-tools, shell.
- [desk](https://www.automicvault.com/ja/pkg/brew/desk/) - Shares av.db curated category or tags: cli, developer-tools, shell.
- [fizsh](https://www.automicvault.com/ja/pkg/brew/fizsh/) - Shares av.db curated category or tags: cli, developer-tools, shell.
- [wxpython](https://www.automicvault.com/ja/pkg/brew/wxpython/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, cross, cross-platform, developer, developer-tools.
- [meson](https://www.automicvault.com/ja/pkg/brew/meson/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, cross, cross-platform, developer, developer-tools.

## Combined YAML source

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


## ソース

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- 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
