# 使用 Homebrew, MacPorts, dnf, scoop, winget, Nix 安装 nu

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

## 安装

```sh
sudo av install brew:nu
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install nu
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install nu
```

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

### Linux

- dnf (92%):

```sh
sudo dnf install nushell
```

  证据: Fedora Rawhide package metadata: nushell from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#nufmt
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/nu
```

  证据: Scoop official bucket manifest trees: bucket/nu.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id Nushell.Nushell -e
```

  证据: Windows Package Manager source index: Nushell.Nushell from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:nu
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/nu>
- **版本:** 2.3.0
- **来源摘要:** Object-oriented, Lisp-like programming language
- **主页:** <https://programming.nu/>
- **仓库:** <https://github.com/programming-nu/nu>
- **上游文档:** <https://programming.nu/>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/programming-nu/nu/archive/refs/tags/v2.3.0.tar.gz>
- **最后更新:** 2026-06-14T14:47:58+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- nubake (cli)
- nudoc (cli)
- nufmt (cli)
- nuke (cli)
- nush (cli)
- nutemplate (cli)
- nutest (cli)
- nutmbundle (cli)
- nubake (别名)
- nudoc (别名)
- nufmt (别名)
- nuke (别名)
- nush (别名)
- nutemplate (别名)
- nutest (别名)
- nutmbundle (别名)

## 依赖

- libffi
- pcre

## macOS 提供的库

- libffi

## 安装行为

- post-install 钩子: 未定义
- 注意事项: Nu.framework was installed to: $HOMEBREW_CELLAR/nu/2.3.0_4/Frameworks/Nu.framework You may want to symlink this Framework to a standard macOS location, such as: ln -s "$HOMEBREW_CELLAR/nu/2.3.0_4/Frameworks/Nu.framework" /Library/Frameworks
- Bottle: 可用 于 arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.3.0
- 管理器更新时间: 2026-06-14
- 本地数据: OK
- 上游仓库: https://github.com/programming-nu/nu
- 检测到的最新版本: v2.3.0 (当前)
## 项目历史与用法

brew:nu is Nu, the Objective-C/Lisp language from programming-nu, not Nushell. It is an interpreted Lisp designed around the Objective-C runtime and Foundation framework.

### 项目历史

The GitHub repository was created on 2008-03-05. The README says Tim Burks created Nu because he wanted Lisp-like flexibility while still working closely with C libraries and high-performance C subsystems; Objective-C supplied the runtime structure that made that integration tractable.

Nu describes its design as 'C over lambda': Lisp syntax and scripting-language flexibility, but with tight Objective-C and Foundation integration instead of the heavier glue code common around Python, Ruby, or Lua C extensions.

### 采用历史

Nu's strongest adoption window was the Mac OS X and Objective-C era before Swift became the default Apple-platform language. Its package history is therefore more niche and historical than active-mainstream: Homebrew, MacPorts, and source builds preserved it for people interested in Objective-C runtime scripting, old examples, and build tools such as `nush` and `nuke`.

The upstream README still documents Macintosh and Ubuntu builds, with older notes for Debian, OpenSolaris, and FreeBSD marked obsolete.

### 使用方式

Package users run `nush` for the shell/interpreter, `nuke` for Nu build tasks, and companion tools such as `nufmt`, `nudoc`, and `nutest`. The package is mostly of interest when exploring dynamic Objective-C programming, old Cocoa-era experiments, or Nu projects that predate Swift.

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

Nu is significant as an Apple-runtime language artifact: a compact example of the period when Objective-C's dynamic runtime invited alternate languages and DSLs before Swift consolidated most new Apple-platform language energy.

### 时间线

- 2008-03-05: GitHub repository created.
- Mac OS X 10.5 era: upstream README documented Mac support and possible Linux/iPhone builds.
- 2023-07-11: GitHub API reported the last push date for the repository snapshot queried.

### Related projects

- Objective-C
- Foundation framework
- nush
- nuke

### 来源

- <https://api.github.com/repos/programming-nu/nu>
- <https://formulae.brew.sh/formula/nu>
- <https://github.com/programming-nu/nu>
- <https://programming-nu.github.io/about>
- <https://raw.githubusercontent.com/programming-nu/nu/master/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:** nu
- **Version Scheme:** 0
- **Revision:** 4
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** yes
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- dnf - nushell - 0.99.1-7.fc45: normalized package name match | Fedora Rawhide package metadata: nushell from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | A new type of shell | https://www.nushell.sh/
- MacPorts - nu: normalized package name match | MacPorts ports tree: devel/nu/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/nu: normalized package name match | Scoop official bucket manifest trees: bucket/nu.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - Nushell.Nushell: normalized package name match | Windows Package Manager source index: Nushell.Nushell from https://cdn.winget.microsoft.com/cache/source.msix
- Nix - nufmt: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/nu/nufmt/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 相关链接

- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [pcre](https://pkg.so/zh-hans/brew/pcre/) - Runtime dependency declared by Homebrew.
- [ruby](https://pkg.so/zh-hans/brew/ruby/) - Shares pkgdb curated category or tags: cli, language-runtime, programming-language, scripting.
- [php](https://pkg.so/zh-hans/brew/php/) - Shares pkgdb curated category or tags: cli, language-runtime, programming-language, scripting.
- [lua](https://pkg.so/zh-hans/brew/lua/) - Shares pkgdb curated category or tags: cli, language-runtime, programming-language, scripting.
- [perl](https://pkg.so/zh-hans/brew/perl/) - Shares pkgdb curated category or tags: cli, language-runtime, programming-language, scripting.
- [clojure](https://pkg.so/zh-hans/brew/clojure/) - Shares pkgdb curated category or tags: cli, language-runtime, lisp, programming-language.
- [minimal-racket](https://pkg.so/zh-hans/brew/minimal-racket/) - Shares pkgdb curated category or tags: cli, language-runtime, lisp, programming-language.
- [luau](https://pkg.so/zh-hans/brew/luau/) - Shares pkgdb curated category or tags: cli, language-runtime, programming-language, scripting.
- [fennel](https://pkg.so/zh-hans/brew/fennel/) - Shares pkgdb curated category or tags: cli, language-runtime, lisp, programming-language.
- [logtalk](https://pkg.so/zh-hans/brew/logtalk/) - Local package facts share a topical domain. Shared terms: cli, language, language-runtime, object, object-oriented.
- [arturo](https://pkg.so/zh-hans/brew/arturo/) - Local package facts share a topical domain. Shared terms: cli, language, language-runtime, programming, programming-language.

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
