# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper 安装 nut

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

## 安装

```sh
sudo av install brew:nut
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install nut
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install nut
```

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

### Linux

- apk (92%):

```sh
sudo apk add nut
```

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

- Debian apt (92%):

```sh
sudo apt install libnutclient-dev
```

  证据: Debian stable package indexes: libnutclient-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install nut
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#nut
```

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

- pacman (92%):

```sh
sudo pacman -S nut
```

  证据: Arch Linux sync databases: nut from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install libnutclient2
```

  证据: openSUSE Tumbleweed package metadata: libnutclient2 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## 软件包事实

- **软件包键:** brew:nut
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/nut>
- **版本:** 2.8.5
- **来源摘要:** Network UPS Tools: Support for various power devices
- **主页:** <https://networkupstools.org/>
- **仓库:** <https://github.com/networkupstools/nut>
- **上游文档:** <https://networkupstools.org/documentation.html>
- **许可证:** GPL-2.0-or-later
- **源码归档:** <https://github.com/networkupstools/nut/releases/download/v2.8.5/nut-2.8.5.tar.gz>
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- al175 (cli)
- apcsmart (cli)
- apcsmart-old (cli)
- apcupsd-ups (cli)
- bcmxcp (cli)
- bcmxcp_usb (cli)
- belkin (cli)
- belkinunv (cli)
- bestfcom (cli)
- bestfortress (cli)
- bestuferrups (cli)
- bestups (cli)
- bicker_ser (cli)
- blazer_ser (cli)
- blazer_usb (cli)
- clone (cli)
- clone-outlet (cli)
- dummy-ups (cli)
- etapro (cli)
- everups (cli)
- failover (cli)
- gamatronic (cli)
- genericups (cli)
- isbmex (cli)
- ivtscd (cli)
- liebert (cli)
- liebert-esp2 (cli)
- liebert-gxe (cli)
- masterguard (cli)
- meanwell_ntu (cli)
- metasys (cli)
- mge-shut (cli)
- mge-utalk (cli)
- microdowell (cli)
- microsol-apc (cli)
- nhs_ser (cli)
- nut-upower (cli)
- nutconf (cli)
- nutdrv_atcl_usb (cli)
- nutdrv_hashx (cli)
- nutdrv_qx (cli)
- nutdrv_siemens-sitop (cli)
- oneac (cli)
- optiups (cli)
- powercom (cli)
- powerpanel (cli)
- powervar_cx_ser (cli)
- powervar_cx_usb (cli)
- rhino (cli)
- richcomm_usb (cli)
- riello_ser (cli)
- riello_usb (cli)
- safenet (cli)
- skel (cli)
- sms_ser (cli)
- solis (cli)
- tripplite (cli)
- tripplite_usb (cli)
- tripplitesu (cli)
- upsc (cli)
- upscmd (cli)
- upscode2 (cli)
- upsd (cli)
- upsdrvctl (cli)
- upsdrvsvcctl (cli)
- upslog (cli)
- upsmon (cli)
- upsrw (cli)
- upssched (cli)
- upssched-cmd (cli)
- usbhid-ups (cli)
- ve-direct (cli)
- victronups (cli)
- al175 (别名)
- apcsmart (别名)
- apcsmart-old (别名)
- apcupsd-ups (别名)
- bcmxcp (别名)
- bcmxcp_usb (别名)
- belkin (别名)
- belkinunv (别名)
- bestfcom (别名)
- bestfortress (别名)
- bestuferrups (别名)
- bestups (别名)
- bicker_ser (别名)
- blazer_ser (别名)
- blazer_usb (别名)
- clone (别名)
- clone-outlet (别名)
- dummy-ups (别名)
- etapro (别名)
- everups (别名)
- failover (别名)
- gamatronic (别名)
- genericups (别名)
- isbmex (别名)
- ivtscd (别名)
- liebert (别名)
- liebert-esp2 (别名)
- liebert-gxe (别名)
- masterguard (别名)
- meanwell_ntu (别名)
- metasys (别名)
- mge-shut (别名)
- mge-utalk (别名)
- microdowell (别名)
- microsol-apc (别名)
- nhs_ser (别名)
- nut-upower (别名)
- nutconf (别名)
- nutdrv_atcl_usb (别名)
- nutdrv_hashx (别名)
- nutdrv_qx (别名)
- nutdrv_siemens-sitop (别名)
- oneac (别名)
- optiups (别名)
- powercom (别名)
- powerpanel (别名)
- powervar_cx_ser (别名)
- powervar_cx_usb (别名)
- rhino (别名)
- richcomm_usb (别名)
- riello_ser (别名)
- riello_usb (别名)
- safenet (别名)
- skel (别名)
- sms_ser (别名)
- solis (别名)
- tripplite (别名)
- tripplite_usb (别名)
- tripplitesu (别名)
- upsc (别名)
- upscmd (别名)
- upscode2 (别名)
- upsd (别名)
- upsdrvctl (别名)
- upsdrvsvcctl (别名)
- upslog (别名)
- upsmon (别名)
- upsrw (别名)
- upssched (别名)
- upssched-cmd (别名)
- usbhid-ups (别名)
- ve-direct (别名)
- victronups (别名)

## 依赖

- libusb
- openssl@3

## 构建依赖

- autoconf
- automake
- libtool
- pkgconf

## 安装行为

- post-install 钩子: 未定义
- 服务: declared
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 2.8.5
- 本地数据: OK
- 上游仓库: https://github.com/networkupstools/nut
- 信息: No package-manager update timestamp was available.
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

Network UPS Tools, packaged as `nut`, is the standard open-source toolkit for monitoring and controlling UPSes, PDUs, automatic transfer switches, power supplies, and related power devices through a common protocol and driver/client/server architecture.

### 项目历史

The official NUT release notes trace the project back to Russell Kroll's 1996 APC Smart-UPS experiments, including cron-driven status reports and early protocol tests. Smart UPS Tools 0.10 was publicly released on March 10, 1998; a June 5, 1999 rewrite separated drivers, server, and clients; and the project renamed itself Network UPS Tools with 0.42.0 on October 31, 1999 to reflect multi-vendor support and avoid APC trademark proximity.

### 采用历史

NUT grew from one APC-focused monitor into a cross-vendor power-device layer. The official site said on July 1, 2026 that at least 197 manufacturers and 1,431 device models were known compatible. Its user manual says NUT is pre-packaged for many operating systems, embedded in storage, automation, and virtualization appliances, and often shipped as companion software by UPS vendors.

### 使用方式

A normal deployment has device-specific drivers feeding `upsd`, clients such as `upsc` querying status, and `upsmon` coordinating graceful shutdown before battery exhaustion. Package users care about config files such as `ups.conf`, driver startup through `upsdrvctl`, network access control, port 3493, and matching the driver to the exact UPS/PDU hardware. Larger deployments use the network model so multiple hosts powered by one UPS can observe the same state and shut down together.

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

NUT is operational plumbing: boring until power fails, then essential. It is packaging-heavy because it touches USB, serial, SNMP, Modbus, OpenSSL, init/service managers, CGI clients, Python/Perl/C/C++ client libraries, device rules, and OS-specific paths. RFC 9271, published in August 2022, documents the UPS management protocol used by the NUT ecosystem and reinforces that the project is more than a single Unix daemon.

### 时间线

- 1996: Russell Kroll begins APC Smart-UPS monitoring experiments.
- 1998-03-10: Smart UPS Tools 0.10 is publicly released.
- 1999-06-05: Version 0.40.0 introduces a redesigned driver/server/client architecture.
- 1999-10-31: Version 0.42.0 adopts the Network UPS Tools name.
- 2002-05: IANA assigns TCP port 3493 and NUT switches from the old port 3305.
- 2002-08-19: NUT 1.0.0 is released.
- 2004-03-23: NUT 2.0.0 arrives with the newer protocol and naming model.
- 2022-08: RFC 9271 publishes the UPS management protocol.
- 2026-04-03: GitHub release v2.8.5 is published.

### Related projects

- apcupsd
- PowerChute
- WMNut
- PyNUTClient
- libupsclient
- libnutclient

### 来源

- <https://api.github.com/repos/networkupstools/nut/releases?per_page=100>
- <https://formulae.brew.sh/formula/nut>
- <https://github.com/networkupstools/nut>
- <https://networkupstools.org/>
- <https://networkupstools.org/docs/developer-guide.chunked/net-protocol.html>
- <https://networkupstools.org/docs/release-notes.chunked/Project_History.html>
- <https://networkupstools.org/docs/user-manual.chunked/ar01s02.html>
- <https://www.rfc-editor.org/rfc/rfc9271.html>


## 安全说明

broad file, network, media, or database tool signal. formula declares a Homebrew service.

- **Geiger 风险:** orange / 中
- broad file, network, media, or database tool signal
- formula declares a Homebrew service


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: /usr/local/ups/etc/nut.conf, /usr/local/ups/etc/ups.conf, /usr/local/ups/etc/upsd.conf, /usr/local/ups/etc/upsmon.conf

## Credential files

- Unix: /usr/local/ups/etc/upsd.users
## 源数据库详情

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

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

- Debian apt - libnutclient-dev - 2.8.1-5: normalized package name match | Debian stable package indexes: libnutclient-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | network UPS tools - development files for the new client library | https://networkupstools.org/
- Debian apt - libnutclient2t64 - 2.8.1-5: normalized package name match | Debian stable package indexes: libnutclient2t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | network UPS tools - new client library | https://networkupstools.org/
- Debian apt - libnutscan-dev - 2.8.1-5: normalized package name match | Debian stable package indexes: libnutscan-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | network UPS tools - development files for the scanner library | https://networkupstools.org/
- Debian apt - libnutscan2 - 2.8.1-5: normalized package name match | Debian stable package indexes: libnutscan2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | network UPS tools - scanner library | https://networkupstools.org/
- Debian apt - libups-nut-perl - 2.8.1-5: normalized package name match | Debian stable package indexes: libups-nut-perl from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | network UPS tools - Perl bindings for NUT server | https://networkupstools.org/
- Debian apt - libupsclient-dev - 2.8.1-5: normalized package name match | Debian stable package indexes: libupsclient-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | network UPS tools - development files | https://networkupstools.org/
- Debian apt - libupsclient6t64 - 2.8.1-5: normalized package name match | Debian stable package indexes: libupsclient6t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | network UPS tools - client library | https://networkupstools.org/
- Debian apt - nut - 2.8.1-5: normalized package name match | Debian stable package indexes: nut from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | network UPS tools - metapackage | https://networkupstools.org/
- Debian apt - nut-cgi - 2.8.1-5: normalized package name match | Debian stable package indexes: nut-cgi from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | network UPS tools - web interface | https://networkupstools.org/
- Debian apt - nut-client - 2.8.1-5: normalized package name match | Debian stable package indexes: nut-client from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | network UPS tools - clients | https://networkupstools.org/
- Debian apt - nut-doc - 2.8.1-5: normalized package name match | Debian stable package indexes: nut-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | network UPS tools - documentation | https://networkupstools.org/
- Debian apt - nut-i2c - 2.8.1-5: normalized package name match | Debian stable package indexes: nut-i2c from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | network UPS tools - I2C driver | https://networkupstools.org/
- Debian apt - nut-ipmi - 2.8.1-5: normalized package name match | Debian stable package indexes: nut-ipmi from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | network UPS tools - IPMI driver | https://networkupstools.org/
- Debian apt - nut-modbus - 2.8.1-5: normalized package name match | Debian stable package indexes: nut-modbus from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | network UPS tools - Modbus driver | https://networkupstools.org/
- Debian apt - nut-monitor - 2.8.1-5: normalized package name match | Debian stable package indexes: nut-monitor from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | network UPS tools - GUI application to monitor UPS status | https://networkupstools.org/
- Debian apt - nut-powerman-pdu - 2.8.1-5: normalized package name match | Debian stable package indexes: nut-powerman-pdu from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | network UPS tools - PowerMan PDU driver | https://networkupstools.org/


## 相关链接

- [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.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://www.automicvault.com/zh-hans/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [openssl@3](https://www.automicvault.com/zh-hans/pkg/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [autoconf](https://www.automicvault.com/zh-hans/pkg/brew/autoconf/) - Build dependency declared by Homebrew.
- [automake](https://www.automicvault.com/zh-hans/pkg/brew/automake/) - Build dependency declared by Homebrew.
- [libtool](https://www.automicvault.com/zh-hans/pkg/brew/libtool/) - Build dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/zh-hans/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [apcupsd](https://www.automicvault.com/zh-hans/pkg/brew/apcupsd/) - Shares av.db curated category or tags: cli, daemon, power-management, system, ups.
- [collectd](https://www.automicvault.com/zh-hans/pkg/brew/collectd/) - Shares av.db curated category or tags: cli, daemon, monitoring, system.
- [direvent](https://www.automicvault.com/zh-hans/pkg/brew/direvent/) - Shares av.db curated category or tags: cli, daemon, monitoring, system.
- [dwatch](https://www.automicvault.com/zh-hans/pkg/brew/dwatch/) - Shares av.db curated category or tags: cli, daemon, monitoring, system.
- [powerman](https://www.automicvault.com/zh-hans/pkg/brew/powerman/) - Shares av.db curated category or tags: cli, power-management, system.
- [uptimed](https://www.automicvault.com/zh-hans/pkg/brew/uptimed/) - Shares av.db curated category or tags: cli, daemon, monitoring, system.
- [zzz](https://www.automicvault.com/zh-hans/pkg/brew/zzz/) - Shares av.db curated category or tags: cli, power-management, system.
- [apachetop](https://www.automicvault.com/zh-hans/pkg/brew/apachetop/) - Shares av.db curated category or tags: cli, monitoring, system.
- [nagios-plugins](https://www.automicvault.com/zh-hans/pkg/brew/nagios-plugins/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, monitoring, network, openssl, openssl-3.
- [cfengine](https://www.automicvault.com/zh-hans/pkg/brew/cfengine/) - Local package facts share a topical domain. Shared terms: cli, management, openssl, openssl-3, support.
- [fwupd](https://www.automicvault.com/zh-hans/pkg/brew/fwupd/) - Local package facts share a topical domain. Shared terms: cli, daemon, libusb, system, usb.

## Combined YAML source

View the package source record on GitHub. [combined/nut.yml](https://github.com/automic-vault/db/blob/main/combined/nut.yml)


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- 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
