Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, Nix, scoop, winget 安装 nats-server

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install nats-server

local Homebrew formula metadata

Linux

Alpine Linux apk已验证 · 92%
sudo apk add nats-server

Alpine Linux edge package indexes · nats-server · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install nats-server

Debian stable package indexes · nats-server · 来源: deb.debian.org

Nix已验证 · 92%
nix profile install nixpkgs#nats-server

nixpkgs package indexes · pkgs/by-name/na/nats-server/package.nix · 来源: api.github.com

Windows

Scoop已验证 · 92%
scoop install main/nats-server

Scoop official bucket manifest trees · bucket/nats-server.json · 来源: api.github.com

Windows Package Manager已验证 · 92%
winget install --id NATSAuthors.NATSServer -e

Windows Package Manager source index · NATSAuthors.NATSServer · 来源: cdn.winget.microsoft.com

概览

软件包摘要

Lightweight cloud messaging system

命令和别名

  • nats-server

历史

项目历史与用法

NATS Server is the Go server for NATS, a subject-based connective messaging system for distributed systems, microservices, edge, IoT, command/control, and event or stream processing.

项目历史

NATS was created by Derek Collison. NATS documentation says the acronym stands for Neural Autonomic Transport System and that Collison conceived it as a central-nervous-system-like messaging platform. A 2016 NATS blog post explains that it began as a central nervous system for a cloud control plane, initially without higher QoS guarantees beyond TCP/IP.

The nats-io/nats-server repository was created on 2012-10-29. NATS Streaming was announced on 2016-07-19 to add persistence and delivery guarantees as a layered service; later NATS Server 2.2 made JetStream the recommended persistence, streaming, and higher-guarantee option, while NATS Streaming became deprecated.

CNCF announced hosting NATS on 2018-03-15 at incubating maturity. The NATS FAQ says maintainership follows a governance process as part of CNCF, with Synadia engineers and community maintainers maintaining the server, streaming server, and official client libraries.

采用历史

GitHub API data fetched on 2026-07-01 showed 20,126 stars and 1,856 forks, the largest upstream community signal in this batch. Homebrew's formula JSON generated on 2026-07-01 reported 8,660 installs over 365 days and 8,658 installs-on-request over 365 days, indicating that most Homebrew installs are direct requests rather than incidental dependencies.

NATS adoption is broader than the Homebrew formula because it is commonly run via Docker, Kubernetes, release archives, and cloud/edge deployments. The official install docs list command-line installer, Docker, Kubernetes, package managers, release zips, and source builds as normal installation paths.

使用方式

Developers run `nats-server` locally for development, as a service for production messaging, or in clusters. Core NATS handles publish/subscribe, request/reply, queueing, service/microservice communication, and subject-based addressing; JetStream adds persistence, replay, key/value, object-store-like patterns, and stronger delivery semantics.

Package nerds use the Homebrew package when they want a local broker-like service without container overhead: `brew install nats-server`, then run the binary and connect clients on the default client port. For production, the same binary is more often wrapped in service managers, Docker images, Helm charts, or managed deployment automation.

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

nats-server is significant because it is both the reference server and the operational heart of the NATS ecosystem. Unlike a client-only package, installing it gives developers a working messaging substrate for local integration tests, demos, and small deployments, while the same project scales into clustered cloud-native infrastructure.

时间线

  • 2012-10-29: nats-io/nats-server repository created on GitHub.
  • 2016-07-19: NATS Streaming announced to add persistence and delivery guarantees.
  • 2018-03-15: CNCF announced NATS as an incubating hosted project.
  • NATS Server 2.2: JetStream became the recommended persistence and streaming option, while NATS Streaming was deprecated.
  • 2026-06-29: nats-server v2.14.3 release published.
  • 2026-07-01: Homebrew formula JSON listed stable version 2.14.3 and 8,660 installs over 365 days.

Related projects

  • JetStream
  • NATS Streaming
  • Synadia
  • CNCF
  • NATS clients

来源

安全态势

风险级别:orange

formula declares a Homebrew service. infrastructure mutation or orchestration signal.

风险分类器

orange 风险 · 中 置信度 · infrastructure

原因

  • formula declares a Homebrew service
  • infrastructure mutation or orchestration signal

信号

  • metadata:service
  • text:cloud

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • formula 元数据声明了服务或守护进程块。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
nats-servercli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本2.14.3
管理器更新时间2026-06-29
本地数据OK
上游当前
检测到的最新版本v2.14.3

https://github.com/nats-io/nats-server

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:nats-server
版本2.14.3
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/nats-server
主页https://nats.io
仓库https://github.com/nats-io/nats-server
上游文档https://docs.nats.io/
许可证Apache-2.0
源码归档https://github.com/nats-io/nats-server/archive/refs/tags/v2.14.3.tar.gz
最后更新2026-06-29T16:08:38Z
Pulseupdated
构建依赖go
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务declared

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namenats-server
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

golang-github-nats-io-nats-server-dev 2.10.27-1

High-Performance server for NATS.io (library)

https://github.com/nats-io/nats-server

sudo apt install golang-github-nats-io-nats-server-dev
  • Section: golang
  • Architecture: all
  • Source Package: nats-server
  • 10 依赖
  • normalized package name match
  • 匹配方式:Nats Server
Debian stable package indexes · deb.debian.org · Debian stable package indexes: golang-github-nats-io-nats-server-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

nats-server 2.10.27-1+b2

High-Performance server for NATS.io (program)

https://github.com/nats-io/nats-server

sudo apt install nats-server
  • Section: golang
  • Architecture: amd64
  • Source Package: nats-server
  • 2 依赖
  • normalized package name match
  • 匹配方式:Nats Server
Debian stable package indexes · deb.debian.org · Debian stable package indexes: nats-server from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

nats-server

nix profile install nixpkgs#nats-server
  • normalized package name match
  • 匹配方式:Nats Server
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/na/nats-server/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

golang-github-nats-io-nats-server-dev 2.10.7-1

High-Performance server for NATS.io (library)

https://github.com/nats-io/nats-server

sudo apt install golang-github-nats-io-nats-server-dev
  • Section: universe/golang
  • Architecture: all
  • Source Package: nats-server
  • 11 依赖
  • normalized package name match
  • 匹配方式:Nats Server
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: golang-github-nats-io-nats-server-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

nats-server 2.10.7-1

High-Performance server for NATS.io (program)

https://github.com/nats-io/nats-server

sudo apt install nats-server
  • Section: universe/golang
  • Architecture: amd64
  • 2 依赖
  • normalized package name match
  • 匹配方式:Nats Server
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: nats-server from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

nats-server 2.14.0-r1

High-Performance server for NATS.io

https://github.com/nats-io/nats-server

sudo apk add nats-server
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: nats-server
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Nats Server
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: nats-server from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
Scoop95%

main/nats-server

scoop install main/nats-server
  • normalized package name match
  • 匹配方式:Nats Server
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/nats-server.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
winget95%

NATSAuthors.NATSServer

winget install --id NATSAuthors.NATSServer -e
  • normalized package name match
  • 匹配方式:Nats Server
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: NATSAuthors.NATSServer from https://cdn.winget.microsoft.com/cache/source.msix

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment