# Install yaegi with Homebrew, apk, MacPorts, Nix, pacman, apt

Yet another elegant Go interpreter. Version 0.16.1 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:yaegi
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install yaegi
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install yaegi
```

  Evidence: MacPorts ports tree: devel/yaegi/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add yaegi
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#yaegi
```

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

- pacman (92%):

```sh
sudo pacman -S yaegi
```

  Evidence: Arch Linux sync databases: yaegi from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- Ubuntu apt (92%):

```sh
sudo apt install yaegi
```

  Evidence: Ubuntu 24.04 LTS package indexes: yaegi from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz

## Package facts

- **Package key:** brew:yaegi
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/yaegi>
- **Version:** 0.16.1
- **Source summary:** Yet another elegant Go interpreter
- **Homepage:** <https://github.com/traefik/yaegi>
- **Repository:** <https://github.com/traefik/yaegi>
- **Upstream docs:** <https://github.com/traefik/yaegi#readme>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/traefik/yaegi/archive/refs/tags/v0.16.1.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- yaegi (cli)
- yaegi (alias)

## Build dependencies

- go

## 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.16.1
- Local data: ok
- Upstream repository: https://github.com/traefik/yaegi
- Upstream latest detected: v0.16.1 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

Yaegi is Traefik Labs' pure-Go interpreter for Go programs. It provides a command-line REPL and script runner, but its deeper package significance is embeddability: Go applications can evaluate Go code at runtime for plugins, scripting, and prototyping without switching to Lua, Python, JavaScript, or a separate DSL.

### Project history

Yaegi was announced in July 2019 by Marc Vertes and the Containous/Traefik team as "Yet Another Go Interpreter", with the E jokingly standing for Elegant, Embedded, Easy, or whatever the reader preferred. The announcement framed it as a way to bring executable Go scripts, embedded plugins, interactive shells, and instant prototyping on top of the Go runtime.

The project's motivation was specific to Go's unusual position: a static, strongly typed compiled language whose parser, type machinery, and reflection facilities are available to Go programs. Yaegi turned that into an interpreter API built around New, Eval, and Use.

The README emphasizes pure Go implementation, standard-library-only design, complete Go specification support, and a safety posture where unsafe and syscall are not exported by default. That made it attractive for embedding in Go applications that need extension points without handing scripts unrestricted process access.

### Adoption history

Yaegi adoption followed two tracks. The visible developer-tool track is the yaegi command, which gives Go users a REPL, executable scripts, and a go-run-like workflow. The infrastructure track is embedding, especially for plugin systems and dynamic extension in Go applications.

Traefik's own ecosystem gave Yaegi a practical showcase: a Go interpreter made by the team behind a cloud-native edge router is naturally suited to runtime extension and plugin workflows. Talks and docs around Yaegi repeatedly mention Traefik Enterprise/plugin motivation alongside the broader goal of filling a missing piece in the Go ecosystem.

Package-manager adoption is modest but broad enough to matter: Yaegi appears in Homebrew, MacPorts, Alpine, Arch, Nix, Ubuntu, and Go package documentation, which makes a Go REPL/installable interpreter available without every user building from source.

### How it is used

CLI users run yaegi with no arguments for a REPL, run Go files as interpreted scripts, or use shebang-style executable Go scripts. The README even suggests rlwrap for line editing/history when using the command interactively.

Go developers embed Yaegi by importing the interp package, creating an interpreter, loading stdlib symbols with Use, and evaluating code with Eval. Common scenarios include user-provided automation, policy or routing extensions, prototyping, tests, dynamic plugins, and applications that want Go as their extension language.

### Why package nerds care

Yaegi is package-nerd interesting because it makes Go behave like a scripting language while staying inside the Go toolchain and module ecosystem. Installing yaegi gives a REPL and script runner; depending on the module gives applications a runtime extension engine.

It also occupies a rare niche: most language interpreters package a language runtime, but Yaegi packages an interpreter for a language famous for avoiding runtime dynamism. That tension is exactly why it shows up in package indexes despite being smaller than mainstream language runtimes.

### Timeline

- 2019-07-27: Traefik/Containous announces Yaegi as an open-source Go interpreter for scripts, embedded plugins, REPL use, and prototyping.
- 2019: Conference talks present Yaegi as a production-oriented Go interpreter and plugin engine for Traefik-related use cases.
- 2020-09-16: Yaegi v0.9.0 release assets appear on GitHub, showing the project moving into packaged binary distribution.
- 2020s: The README documents the stable public API shape around interp.New, Eval, and Use, and the yaegi command becomes packaged across multiple Unix package managers.

### Related projects

- Go is the compiled language and standard library that Yaegi interprets and reuses.
- Traefik and Traefik Enterprise are related through the team and plugin/extension motivation behind Yaegi.
- Lua, Python, JavaScript, Starlark, Tengo, and Go plugins are neighboring choices for embedding scriptability or runtime extension in Go applications.
- rlwrap is commonly paired with the yaegi command for interactive history and line editing.

### Sources

- <https://github.com/traefik/yaegi>
- <https://github.com/traefik/yaegi/releases/tag/v0.9.0>
- <https://golab.io/talks/yaegi-yet-another-elegant-go-interpreter>
- <https://pkg.go.dev/github.com/traefik/yaegi/cmd/yaegi>
- <https://traefik.io/blog/announcing-yaegi-263a1e2d070a>


## Security Notes

generalized runtime or code generation signal.

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

## Source Database Details

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

## Other Package-Manager Records

- Nix - yaegi: normalized package name match | nixpkgs package indexes: pkgs/by-name/ya/yaegi/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - yaegi - 0.15.1-2: normalized package name match | Ubuntu 24.04 LTS package indexes: yaegi from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Another Elegant Go Interpreter | https://github.com/traefik/yaegi
- apk - yaegi - 0.16.1-r18: normalized package name match | Alpine Linux edge package indexes: yaegi from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Elegant Go interpreter | https://github.com/traefik/yaegi
- pacman - yaegi - 0.16.1-2: normalized package name match | Arch Linux sync databases: yaegi from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Yet another Elegant Go Interpreter | https://github.com/containous/yaegi
- MacPorts - yaegi: normalized package name match | MacPorts ports tree: devel/yaegi/Portfile from https://api.github.com/repos/macports/macports-ports/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.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [cpi](https://www.automicvault.com/pkg/brew/cpi/) - Shares av.db curated category or tags: cli, interpreter, language-runtime, repl, scripting.
- [llgo](https://www.automicvault.com/pkg/brew/llgo/) - Shares av.db curated category or tags: cli, go, language-runtime.
- [ryelang](https://www.automicvault.com/pkg/brew/ryelang/) - Shares av.db curated category or tags: cli, go, language-runtime, repl, scripting.
- [ammonite-repl](https://www.automicvault.com/pkg/brew/ammonite-repl/) - Shares av.db curated category or tags: cli, language-runtime, repl, scripting.
- [cling](https://www.automicvault.com/pkg/brew/cling/) - Shares av.db curated category or tags: cli, interpreter, language-runtime, repl.
- [gauche](https://www.automicvault.com/pkg/brew/gauche/) - Shares av.db curated category or tags: cli, interpreter, language-runtime, scripting.
- [gnu-apl](https://www.automicvault.com/pkg/brew/gnu-apl/) - Shares av.db curated category or tags: cli, interpreter, language-runtime, scripting.
- [gnu-smalltalk](https://www.automicvault.com/pkg/brew/gnu-smalltalk/) - Shares av.db curated category or tags: cli, interpreter, language-runtime, scripting.
- [wren-cli](https://www.automicvault.com/pkg/brew/wren-cli/) - Local package facts share a topical domain. Shared terms: cli, language, language-runtime, repl, runtime.
- [cbmbasic](https://www.automicvault.com/pkg/brew/cbmbasic/) - Local package facts share a topical domain. Shared terms: cli, interpreter, language, language-runtime, runtime.

## Combined YAML source

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