# 使用 Homebrew, MacPorts, Nix 安装 oak

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install oak
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install oak
```

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

### 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
- **版本:** 0.3
- **来源摘要:** Expressive, simple, dynamic programming language
- **主页:** <https://oaklang.org/>
- **仓库:** <https://github.com/thesephist/oak>
- **最后更新:** 2026-07-27T23:46:48+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- oak (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.3
## 项目历史与用法

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

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

- 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
- MacPorts - oak: normalized package name match | MacPorts ports tree: devel/oak/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

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