# erg を Homebrew, Nix でインストール

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

## インストール

```sh
sudo av install brew:erg
```

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

### macOS

- Homebrew (100%):

```sh
brew install erg
```

  証拠: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#erg
```

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

## パッケージ情報

- **パッケージキー:** brew:erg
- **パッケージマネージャ:** Homebrew
- **バージョン:** 0.6.53
- **ソース概要:** Statically typed language that can deeply improve the Python ecosystem
- **ホームページ:** <https://github.com/erg-lang/erg>
- **リポジトリ:** <https://github.com/erg-lang/erg>
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- erg (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 0.6.53
## プロジェクトの歴史と使われ方

Erg is an experimental statically typed programming language implemented in Rust and designed to interoperate with Python. The official README presents it as a language for Python users who want stronger static guarantees, readable errors, and a practical mix of functional and object-oriented programming.

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

The public GitHub repository was created in 2022, with an initial 0.1.1 GitHub release shortly afterward. The README states that the repository contains the compiler and documentation and lists features such as refinement-style type checks, Python API imports, optional language-server builds, and localized diagnostics.

### 採用の歴史

Erg's adoption is early-stage and developer-experimental. The README points users to Cargo, source builds, Nix, a web playground, and multilingual documentation, while the supplied input lists Homebrew and Nix package availability.

### 使われ方

Users run the `erg` compiler or REPL, build it with Cargo or Nix, and can enable feature flags such as language-specific diagnostics, the Erg Language Server, debug mode, or richer REPL behavior. Its core usage story is trying a Python-compatible language with static checks rather than replacing the Python runtime outright.

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

Erg is interesting to package nerds as a young language-runtime formula: it mixes a Rust compiler, Python runtime requirements, optional language-server pieces, and docs/playground expectations. Its package-manager presence is more about discoverability for language experimenters than mass production use.

### タイムライン

- 2022: The GitHub repository was created.
- 2022: Version 0.1.1 was published on GitHub releases.
- 2020s: The README documents Cargo, source, Nix, and optional ELS installation paths.

### Related projects

- Erg is related to Python, Rust, Nix, Cargo, and editor language-server tooling.

### ソース

- <https://github.com/erg-lang/erg>
- <https://github.com/erg-lang/erg/releases>
- <https://api.github.com/repos/erg-lang/erg>
- <https://erg-lang.org/the-erg-book>


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals

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

- Nix - erg: normalized package name match | nixpkgs package indexes: pkgs/by-name/er/erg/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

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


## ソース

- 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
