# Install erg with Homebrew, Nix

Statically typed language that can deeply improve the Python ecosystem. Version 0.6.53 via Homebrew; verified from local package data.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install erg
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

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

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

## Package facts

- **Package key:** brew:erg
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/erg>
- **Version:** 0.6.53
- **Source summary:** Statically typed language that can deeply improve the Python ecosystem
- **Homepage:** <https://github.com/erg-lang/erg>
- **Repository:** <https://github.com/erg-lang/erg>
- **Upstream docs:** <https://erg-lang.org/install>
- **License:** Apache-2.0 OR MIT
- **Source archive:** <https://github.com/erg-lang/erg/archive/refs/tags/v0.6.53.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- erg (cli)
- erg (alias)

## Build dependencies

- rust

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.6.53
- Local data: ok
- Upstream repository: https://github.com/erg-lang/erg
- Upstream latest detected: v0.6.53 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

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

### Sources

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


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

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

## Other Package-Manager Records

- 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


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [rust](https://www.automicvault.com/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [gleam](https://www.automicvault.com/pkg/brew/gleam/) - Shares av.db curated category or tags: cli, compiler, language-runtime, programming-language, programming-languages.
- [fantom](https://www.automicvault.com/pkg/brew/fantom/) - Shares av.db curated category or tags: cli, compiler, language-runtime, programming-language, programming-languages.
- [faust](https://www.automicvault.com/pkg/brew/faust/) - Shares av.db curated category or tags: cli, compiler, language-runtime, programming-language, programming-languages.
- [futhark](https://www.automicvault.com/pkg/brew/futhark/) - Shares av.db curated category or tags: cli, compiler, language-runtime, programming-language, programming-languages.
- [haxe](https://www.automicvault.com/pkg/brew/haxe/) - Shares av.db curated category or tags: cli, compiler, language-runtime, programming-language, programming-languages.
- [oak](https://www.automicvault.com/pkg/brew/oak/) - Shares av.db curated category or tags: cli, compiler, language-runtime, programming-language, programming-languages.
- [ocaml](https://www.automicvault.com/pkg/brew/ocaml/) - Shares av.db curated category or tags: cli, compiler, language-runtime, programming-language, programming-languages.
- [odin](https://www.automicvault.com/pkg/brew/odin/) - Shares av.db curated category or tags: cli, compiler, language-runtime, programming-language, programming-languages.
- [hy](https://www.automicvault.com/pkg/brew/hy/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, compiler, language, language-runtime, programming.
- [three-body](https://www.automicvault.com/pkg/brew/three-body/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, compiler, language, language-runtime, programming.

## Combined YAML source

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


## Sources

- 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
