# 使用 Homebrew, Nix 安装 oak

查看 oak 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:oak
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install oak
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#oak
```

  证据: nixpkgs package indexes: pkgs/by-name/oa/oak/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:oak
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/oak>
- **版本:** 0.3
- **来源摘要:** Expressive, simple, dynamic programming language
- **主页:** <https://oaklang.org/>
- **仓库:** <https://github.com/thesephist/oak>
- **上游文档:** <https://oaklang.org/>
- **许可证:** MIT
- **源码归档:** <https://github.com/thesephist/oak/archive/refs/tags/v0.3.tar.gz>
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- oak (cli)
- oak (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 0.3
- 本地数据: OK
- 上游仓库: https://github.com/thesephist/oak
- 检测到的最新版本: v0.3 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

Oak is Linus Lee's small dynamically typed programming language, distributed as a single oak command that includes an interpreter, formatter, bundler, JavaScript compiler path, test runner, documentation tooling, and standard library.

### 项目历史

The GitHub repository was created on 2021-07-09. The Oak website says Lee had been building Oak since early July 2021 and frames it as a sequel to Ink: not an Ink 2.0 upgrade, but a different language meant to keep Ink's small-language feel while fixing shortcomings that appeared after using Ink for personal productivity tools, compilers, ray tracers, and other projects.

### 采用历史

Oak is intentionally niche. Its website says it was designed for Lee's hobby projects and had become his main language for simple scripts, side projects, and personal knowledge tools since late 2021. Homebrew reported stable version 0.3 with 68 installs over the 365-day analytics window queried on 2026-07-01.

### 使用方式

Users run oak as a REPL, pass .oak files to execute scripts, use oak fmt for formatting, and use oak build to bundle programs or cross-compile Oak bundles to JavaScript for browser, Node.js, or Deno environments. The examples emphasize functional-style code, pattern-matching if expressions, callback-oriented asynchronous I/O, and a built-in HTTP server/router in the standard library.

### 为什么软件包爱好者会关心

Oak matters less as a mainstream language and more as a well-packaged personal language runtime: Go implementation, single executable, Homebrew availability, self-hosted standard-library examples, and a public website documenting the design tradeoffs of a solo language project.

### 时间线

- 2021-07-09: GitHub repository created.
- Late 2021: Oak website says it became the author's main language for simple scripts, side projects, and personal knowledge tools.
- 2026-07-01: Homebrew formula API reported stable version 0.3.

### Related projects

- Ink
- September
- oaklang GitHub topic

### 来源

- <https://api.github.com/repos/thesephist/oak>
- <https://formulae.brew.sh/api/formula/oak.json>
- <https://github.com/thesephist/oak>
- <https://oaklang.org/>
- <https://raw.githubusercontent.com/thesephist/oak/main/README.md>


## 安全说明

generalized runtime or code generation signal.

- **Geiger 风险:** yellow / 中
- generalized runtime or code generation signal

## 源数据库详情

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

## 其他软件包管理器记录

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


## 相关链接

- [Secret-risk packages](https://www.automicvault.com/zh-hans/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://www.automicvault.com/zh-hans/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [go](https://www.automicvault.com/zh-hans/pkg/brew/go/) - Build dependency declared by Homebrew.
- [erg](https://www.automicvault.com/zh-hans/pkg/brew/erg/) - Shares av.db curated category or tags: cli, compiler, language-runtime, programming-language, programming-languages.
- [fantom](https://www.automicvault.com/zh-hans/pkg/brew/fantom/) - Shares av.db curated category or tags: cli, compiler, language-runtime, programming-language, programming-languages.
- [faust](https://www.automicvault.com/zh-hans/pkg/brew/faust/) - Shares av.db curated category or tags: cli, compiler, language-runtime, programming-language, programming-languages.
- [futhark](https://www.automicvault.com/zh-hans/pkg/brew/futhark/) - Shares av.db curated category or tags: cli, compiler, language-runtime, programming-language, programming-languages.
- [gleam](https://www.automicvault.com/zh-hans/pkg/brew/gleam/) - Shares av.db curated category or tags: cli, compiler, language-runtime, programming-language, programming-languages.
- [haxe](https://www.automicvault.com/zh-hans/pkg/brew/haxe/) - Shares av.db curated category or tags: cli, compiler, language-runtime, programming-language, programming-languages.
- [malbolge](https://www.automicvault.com/zh-hans/pkg/brew/malbolge/) - Shares av.db curated category or tags: cli, interpreter, language-runtime, programming-language, programming-languages.
- [ocaml](https://www.automicvault.com/zh-hans/pkg/brew/ocaml/) - Shares av.db curated category or tags: cli, compiler, language-runtime, programming-language, programming-languages.

## Combined YAML source

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