# 使用 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 nut
```

  证据: Debian stable package indexes: nut 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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 nut
```

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

## 软件包事实

- **软件包键:** brew:nut
- **软件包管理器:** Homebrew
- **版本:** 2.8.5
- **来源摘要:** Network UPS Tools: Support for various power devices
- **主页:** <https://networkupstools.org/>
- **仓库:** <https://github.com/networkupstools/nut>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- 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 (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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
## 其他软件包管理器记录

- 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/


## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
