# 使用 Homebrew, apk, MacPorts 安装 ngs

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

## 安装

```sh
sudo av install brew:ngs
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ngs
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ngs
```

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

### Linux

- apk (92%):

```sh
sudo apk add ngs
```

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

## 软件包事实

- **软件包键:** brew:ngs
- **软件包管理器:** Homebrew
- **版本:** 0.2.17
- **来源摘要:** Powerful programming language and shell designed specifically for Ops
- **主页:** <https://ngs-lang.org/>
- **仓库:** <https://github.com/ngs-lang/ngs>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- ngs (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

NGS, or Next Generation Shell, is a GPL-3.0 language and shell project aimed at operations and DevOps scripting. The project positions itself between traditional shells and general-purpose languages: keep convenient process execution, but add structured data handling, exceptions, multimethods, patterns, and libraries for automation tasks.

### 项目历史

The public project is source-first and documentation-heavy rather than release-history-heavy. Its README states that the creator built NGS to reduce the pain of using Bash or Python for common Ops work, and the documentation set for version 0.2.17 includes language reference, tutorial, motivation, internals, style guide, CLI manual, and AWS command documentation.

The repository records roughly three thousand commits and a 0.2.x release line; Homebrew packaged version 0.2.17 from the upstream GitHub tag. NGS also carries installation paths through Homebrew, MacPorts, Snap, Docker, GitHub Actions, and helper projects for AWS Lambda and IPython/Jupyter.

### 采用历史

Adoption evidence is visible but niche. The GitHub repository shows about 1.5k stars, while Homebrew analytics on July 1, 2026 reported 35 installs on request over 365 days. The package is also present in Alpine and MacPorts, which suggests packaging interest beyond Homebrew but not broad ecosystem pull.

The upstream README gives one concrete production-ish adoption note: NGS is used at Beame.io for miscellaneous scripting, CLI testing, performance-test orchestration, and cloud manipulation. That is stronger than a toy example, but there are few independent adoption writeups.

### 使用方式

Package nerds use NGS as an experiment in replacing shell scripts for automation with a language that treats JSON, tables, command exit codes, retries, logging, status output, and external-program pipelines as first-class Ops concerns. The practical workflow is to install `ngs`, run scripts with `ngs SCRIPT_NAME.ngs`, or use one-liners such as `ngs -pi 'sum(0..10)'`.

The interesting packaging detail is that NGS is not only a CLI binary; it is also distributed as a GitHub Action and has integrations for container and serverless runtimes. That makes it a small but coherent language-runtime package rather than just another shell helper.

### 时间线

- {'date': '2026-07-01', 'event': 'Homebrew API listed stable version 0.2.17 and 35 install-on-request events over 365 days.'}

### Related projects

- Bash
- Python
- Rash
- ngs-aws-lambda
- ngs-ipython-extension

### 来源

- <https://formulae.brew.sh/api/formula/ngs.json>
- <https://github.com/ngs-lang/ngs>
- <https://ngs-lang.org/>
- <https://ngs-lang.org/doc/latest/index.html>


## 安全说明

generalized runtime or code generation signal.

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

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

- apk - ngs - 0.2.14-r0: normalized package name match | Alpine Linux edge package indexes: ngs from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Next Generation Shell | https://ngs-lang.org
- apk - ngs-aws - 0.2.14-r0: normalized package name match | Alpine Linux edge package indexes: ngs-aws from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Next Generation Shell - experimental AWS library | https://ngs-lang.org
- apk - ngs-vim - 0.2.14-r0: normalized package name match | Alpine Linux edge package indexes: ngs-vim from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Next Generation Shell (vim syntax) | https://ngs-lang.org
- MacPorts - ngs: normalized package name match | MacPorts ports tree: shells/ngs/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/ngs.yml](https://github.com/mxcl/pkgdb/blob/main/combined/ngs.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
