# oils-for-unix を Homebrew, apk, Nix, pacman, zypper, dnf でインストール

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

## インストール

```sh
sudo av install brew:oils-for-unix
```

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

### macOS

- Homebrew (100%):

```sh
brew install oils-for-unix
```

  証拠: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add oils-for-unix
```

  証拠: Alpine Linux edge package indexes: oils-for-unix from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#oils-for-unix
```

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

- pacman (92%):

```sh
sudo pacman -S oils-for-unix
```

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

- zypper (92%):

```sh
sudo zypper install oils-for-unix
```

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

- dnf (92%):

```sh
sudo dnf install osh-client
```

  証拠: Fedora Rawhide package metadata: osh-client from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

## パッケージ情報

- **パッケージキー:** brew:oils-for-unix
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/oils-for-unix>
- **バージョン:** 0.37.0
- **ソース概要:** Bash-compatible Unix shell with more consistent syntax and semantics
- **ホームページ:** <https://oils.pub/>
- **リポジトリ:** <https://github.com/oils-for-unix/oils>
- **上流ドキュメント:** <https://github.com/oils-for-unix/oils#readme>
- **ライセンス:** Apache-2.0
- **ソースアーカイブ:** <https://oils.pub/download/oils-for-unix-0.37.0.tar.gz>
- **最終更新:** 2026-06-22T14:05:40-07:00
- **生成日時:** 2026-07-08T07:18:31+00:00

## 実行可能ファイル

- oils-for-unix (cli)
- osh (cli)
- ysh (cli)
- oils-for-unix (エイリアス)
- osh (エイリアス)
- ysh (エイリアス)

## 依存関係

- readline

## インストール挙動

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

## バージョンと鮮度

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

Oils for Unix is a shell project that contains OSH, a POSIX/bash-compatible shell for existing scripts, and YSH, a newer shell language aimed at programmers who want shell's process orchestration with more regular syntax and data structures.

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

Andy Chu began Oils in 2016 as an independent project to restore and re-imagine the Unix shell. The GitHub repository was created on 2016-11-15, and Chu's resume describes the work as an independent, non-profit language-engineering project funded by NLnet from 2022 to 2026.

The project deliberately took a compatibility-first path. Chu's 2021 explanation separates POSIX shell, bash, OSH, and Oil: OSH is the implementation intended to run existing shell scripts, while Oil was the incompatible new language intended to fix decades of accumulated shell language problems. The same essay says OSH had run existing scripts since January 2018 and had matured through regular releases.

In 2023 the project renamed itself from Oil/Oil Shell to Oils for Unix, with OSH and YSH as the named subprojects. The rename clarified the difference between the compatible shell and the new shell language, provided a globally unique package and project identity, and matched the busybox-like release layout with `oils-for-unix` plus `osh` and `ysh` symlinks.

### 採用の歴史

Oils has a larger footprint than the other shell packages in this batch: the GitHub API reported 3,357 stars and 193 forks for `oils-for-unix/oils`, and Homebrew's 2026-07-01 formula API reported 331 installs over 365 days. The formula also records the old Homebrew name `oil`, showing the packaging transition caused by the 2023 rename.

NLnet's project page frames Oils as an upgrade path from traditional shells like bash to a more structured language and runtime, with OSH running thousands of lines of unmodified POSIX and bash scripts and YSH offering a language influenced by Python, Ruby, JavaScript, JSON, and YAML. That external funding and packaging across Homebrew, apk, Nix, Arch, and openSUSE-style systems give Oils more than hobby-project status, even though it remains specialized.

### 使われ方

Developers use OSH to test or run existing shell scripts under a more explicit implementation, and use YSH for new scripts where shell-like command composition is useful but bash syntax is too irregular. The README shows `bin/osh` for interactive use or for running an existing script, and `bin/ysh` for the newer language.

The implementation model matters: the source is written in Python for easier development, then translated to C++ with custom tools so released executables are fast, small, and do not depend on Python. The project asks users to consume release tarballs from `oils.pub` rather than cloning the development repository.

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

Oils is significant because it treats shell as both legacy infrastructure and language-design territory. Package maintainers see the practical side in the formula: one source tarball installs `oils-for-unix`, `osh`, and `ysh`, depends on readline, and conflicts with packages that also install an `osh` binary.

For shell/package historians, Oils sits at the intersection of POSIX shell compatibility, bash's network effect, language migration strategy, and distribution naming. Its rename from `oil` to `oils-for-unix` is unusually well documented and visible directly in package-manager metadata.

### タイムライン

- 2016: Andy Chu began the Oils/Oil Shell work.
- 2016-11-15: the GitHub repository was created.
- 2018-01: OSH was documented by the project as running existing shell scripts.
- 2022-04 to 2023-02: NLnet's NGI Assure grant period supported the Oil Shell project.
- 2023-03-31: the project published the rename rationale for Oils, OSH, and YSH.
- 2026-07-01: Homebrew's formula API reported stable version 0.37.0 and executables `oils-for-unix`, `osh`, and `ysh`.

### Related projects

- Oils is directly related to POSIX shell, GNU bash, zsh, fish, ksh-family shells, and other attempts to make shell programming safer or more regular. Its internal split between OSH and YSH is the central related-project relationship: OSH preserves compatibility, while YSH is the migration target.

### ソース

- <https://andychu.net/resume/>
- <https://api.github.com/repos/oils-for-unix/oils>
- <https://formulae.brew.sh/api/formula/oils-for-unix.json>
- <https://github.com/oils-for-unix/oils>
- <https://nlnet.nl/project/OilShell/>
- <https://raw.githubusercontent.com/oils-for-unix/oils/master/README.md>
- <https://www.oilshell.org/blog/2021/01/why-a-new-shell.html>
- <https://www.oilshell.org/blog/2023/03/rename.html>


## セキュリティノート

generalized runtime or code generation signal.

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

## ソースデータベース詳細

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** oils-for-unix
- **Version Scheme:** 0
- **Revision:** 0
- **Conflicts With:** etsh, omake
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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

- Nix - oils-for-unix: normalized package name match | nixpkgs package indexes: pkgs/by-name/oi/oils-for-unix/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - oils-for-unix - 0.37.0-r0: normalized package name match | Alpine Linux edge package indexes: oils-for-unix from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Unix shell with JSON-compatible structured data | https://www.oils.pub/
- apk - oils-for-unix-bash - 0.37.0-r0: normalized package name match | Alpine Linux edge package indexes: oils-for-unix-bash from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | oils-for-unix as /bin/bash | https://www.oils.pub/
- apk - oils-for-unix-binsh - 0.37.0-r0: normalized package name match | Alpine Linux edge package indexes: oils-for-unix-binsh from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | oils-for-unix as /bin/sh | https://www.oils.pub/
- apk - oils-for-unix-doc - 0.37.0-r0: normalized package name match | Alpine Linux edge package indexes: oils-for-unix-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Unix shell with JSON-compatible structured data (documentation) | https://www.oils.pub/
- pacman - oils-for-unix - 0.37.0-3: normalized package name match | Arch Linux sync databases: oils-for-unix from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Oils for Unix: OSH and YSH shells | https://oils.pub/
- zypper - oils-for-unix - 0.37.0-1.2: normalized package name match | openSUSE Tumbleweed package metadata: oils-for-unix from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | A bash compatible shell and a new modern shell | https://oils.pub
- dnf - osh-client - 1.1.1-7.fc45: installed executable or alias match | Fedora Rawhide package metadata: osh-client from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | OpenScanHub CLI client | https://github.com/openscanhub/openscanhub/
- dnf - osh-common - 1.1.1-7.fc45: installed executable or alias match | Fedora Rawhide package metadata: osh-common from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | OpenScanHub shared files for client, hub and worker | https://github.com/openscanhub/openscanhub/
- dnf - osh-hub - 1.1.1-7.fc45: installed executable or alias match | Fedora Rawhide package metadata: osh-hub from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | OpenScanHub xml-rpc interface and web application | https://github.com/openscanhub/openscanhub/
- dnf - osh-hub-conf-devel - 1.1.1-7.fc45: installed executable or alias match | Fedora Rawhide package metadata: osh-hub-conf-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | OpenScanHub hub devel configuration | https://github.com/openscanhub/openscanhub/
- dnf - osh-worker - 1.1.1-7.fc45: installed executable or alias match | Fedora Rawhide package metadata: osh-worker from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | OpenScanHub worker | https://github.com/openscanhub/openscanhub/
- dnf - osh-worker-conf-devel - 1.1.1-7.fc45: installed executable or alias match | Fedora Rawhide package metadata: osh-worker-conf-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | OpenScanHub worker devel configuration | https://github.com/openscanhub/openscanhub/
- dnf - osh-worker-manager - 1.1.1-7.fc45: installed executable or alias match | Fedora Rawhide package metadata: osh-worker-manager from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | OpenScanHub worker manager | https://github.com/openscanhub/openscanhub/


## 関連リンク

- [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.
- [Language runtime packages](https://www.automicvault.com/ja/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://www.automicvault.com/ja/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [ksh93](https://www.automicvault.com/ja/pkg/brew/ksh93/) - Shares av.db curated category or tags: cli, language-runtime, shell.
- [min-lang](https://www.automicvault.com/ja/pkg/brew/min-lang/) - Shares av.db curated category or tags: cli, language-runtime, shell.
- [mksh](https://www.automicvault.com/ja/pkg/brew/mksh/) - Shares av.db curated category or tags: cli, language-runtime, shell.
- [n](https://www.automicvault.com/ja/pkg/brew/n/) - Shares av.db curated category or tags: cli, language-runtime, shell.
- [ngs](https://www.automicvault.com/ja/pkg/brew/ngs/) - Shares av.db curated category or tags: cli, language-runtime, shell.
- [plenv](https://www.automicvault.com/ja/pkg/brew/plenv/) - Shares av.db curated category or tags: cli, language-runtime, shell.
- [pyenv](https://www.automicvault.com/ja/pkg/brew/pyenv/) - Shares av.db curated category or tags: cli, language-runtime, shell.
- [abcl](https://www.automicvault.com/ja/pkg/brew/abcl/) - Shares av.db curated category or tags: cli, language-runtime.
- [jimtcl](https://www.automicvault.com/ja/pkg/brew/jimtcl/) - Local package facts share a topical domain. Shared terms: cli, language, language-runtime, readline, runtime.

## Combined YAML source

View the package source record on GitHub. [combined/oils-for-unix.yml](https://github.com/automic-vault/db/blob/main/combined/oils-for-unix.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
