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

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

## 安装

```sh
sudo av install brew:apcupsd
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install apcupsd
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install apcupsd
```

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

### Linux

- apk (92%):

```sh
sudo apk add apcupsd
```

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

- Debian apt (92%):

```sh
sudo apt install apcupsd
```

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

- dnf (92%):

```sh
sudo dnf install apcupsd
```

  证据: Fedora Rawhide package metadata: apcupsd 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#apcupsd
```

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

- pacman (92%):

```sh
sudo pacman -S apcupsd
```

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

- zypper (92%):

```sh
sudo zypper install apcupsd
```

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

## 软件包事实

- **软件包键:** brew:apcupsd
- **软件包管理器:** Homebrew
- **版本:** 3.14.14
- **来源摘要:** Daemon for controlling APC UPSes
- **主页:** <http://www.apcupsd.org>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- apcaccess (别名)
- apctest (别名)
- apcupsd (别名)
- apcupsd-start (别名)
- smtp (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

apcupsd is a daemon and command-line toolset for monitoring and controlling APC UPS devices. It is one of those infrastructure packages that quietly matters because it can shut systems down cleanly when power fails.

### 项目历史

The apcupsd project dates to the long-running Unix tradition of hardware daemons: small background services that translate a device protocol into system policy. Its official manual documents operation with APC UPS hardware, configuration through `apcupsd.conf`, status querying through `apcaccess`, and testing through `apctest`.

The project has historically lived on SourceForge, with source control exposed through the official SourceForge project tree. That hosting history matches many mature system utilities that predate GitHub-centered development.

### 采用历史

apcupsd's adoption is strongest in server, NAS, homelab, and workstation environments where APC UPS hardware is common and a lightweight local daemon is preferable to a larger management suite.

The supplied package data shows broad Unix-like packaging: Alpine, Homebrew, Debian, Fedora/dnf, MacPorts, Nix, Arch/pacman, Ubuntu, and openSUSE/zypper. That breadth is the package-history signal: administrators expect it to be available from the native package manager on almost any Unix-like system.

### 使用方式

Typical usage is to configure `/etc/apcupsd/apcupsd.conf`, run the `apcupsd` daemon, inspect UPS state with `apcaccess`, and test device communication with `apctest`. Scripts and service managers then use the daemon's events to perform clean shutdowns or notifications.

The package is hardware-facing, so installation alone is not the whole story. Correct cable/device selection, daemon privileges, and shutdown policy matter more than application-level credentials.

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

apcupsd is package-nerd significant because it represents the unglamorous layer where packaging meets physical infrastructure. A good package has to install a daemon, config file, service integration, helper commands, and documentation without hiding the hardware-specific knobs.

It also illustrates why old system packages remain valuable: power events are rare, but when they happen the daemon must already be installed, configured, and boringly reliable.

### 时间线

- 1990s: apcupsd emerges as a Unix daemon for APC UPS management.
- 2000s: SourceForge hosting and distribution packaging make apcupsd a standard sysadmin utility.
- 2010s: Linux, BSD, and macOS package ecosystems continue shipping apcupsd.
- 2020s: The package remains available across mainstream Unix-like package managers.

### Related projects

- Network UPS Tools is the most common neighboring UPS-monitoring project.
- System service managers and shutdown tools are operationally adjacent because apcupsd's main job is to react safely to power events.

### 来源

- <http://www.apcupsd.org/manual>
- <https://sourceforge.net/p/apcupsd/svn/HEAD/tree/>
- source_facts.executables
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## 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: /etc/apcupsd/apcupsd.conf
## 其他软件包管理器记录

- Debian apt - apcupsd - 3.14.14-5: normalized package name match | Debian stable package indexes: apcupsd from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | APC UPS Power Management (daemon) | http://www.apcupsd.org/
- Debian apt - apcupsd-cgi - 3.14.14-5: normalized package name match | Debian stable package indexes: apcupsd-cgi from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | APC UPS Power Management (web interface) | http://www.apcupsd.org/
- Debian apt - apcupsd-doc - 3.14.14-5: normalized package name match | Debian stable package indexes: apcupsd-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | APC UPS Power Management (documentation/examples) | http://www.apcupsd.org/
- Nix - apcupsd: normalized package name match | nixpkgs package indexes: pkgs/by-name/ap/apcupsd/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - apcupsd - 3.14.14-3.1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: apcupsd from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | APC UPS Power Management (daemon) | http://www.apcupsd.org/
- Ubuntu apt - apcupsd-cgi - 3.14.14-3.1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: apcupsd-cgi from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | APC UPS Power Management (web interface) | http://www.apcupsd.org/
- Ubuntu apt - apcupsd-doc - 3.14.14-3.1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: apcupsd-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | APC UPS Power Management (documentation/examples) | http://www.apcupsd.org/
- apk - apcupsd - 3.14.14-r6: normalized package name match | Alpine Linux edge package indexes: apcupsd from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A Daemon to control APC UPSes | http://www.apcupsd.org
- apk - apcupsd-doc - 3.14.14-r6: normalized package name match | Alpine Linux edge package indexes: apcupsd-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A Daemon to control APC UPSes (documentation) | http://www.apcupsd.org
- apk - apcupsd-openrc - 3.14.14-r6: normalized package name match | Alpine Linux edge package indexes: apcupsd-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A Daemon to control APC UPSes (OpenRC init scripts) | http://www.apcupsd.org
- apk - apcupsd-webif - 3.14.14-r6: normalized package name match | Alpine Linux edge package indexes: apcupsd-webif from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A Daemon to control APC UPSes | http://www.apcupsd.org
- dnf - apcupsd - 3.14.14-42.fc45: normalized package name match | Fedora Rawhide package metadata: apcupsd from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | APC UPS Power Control Daemon | http://www.apcupsd.com
- dnf - apcupsd-cgi - 3.14.14-42.fc45: normalized package name match | Fedora Rawhide package metadata: apcupsd-cgi from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Web interface for apcupsd | http://www.apcupsd.com
- dnf - apcupsd-gui - 3.14.14-42.fc45: normalized package name match | Fedora Rawhide package metadata: apcupsd-gui from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | GUI interface for apcupsd | http://www.apcupsd.com
- pacman - apcupsd - 3.14.14-9: normalized package name match | Arch Linux sync databases: apcupsd from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Power mangement and controlling most of APC's UPS models | http://www.apcupsd.org
- zypper - apcupsd - 3.14.14-17.7: normalized package name match | openSUSE Tumbleweed package metadata: apcupsd from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | APC UPS Daemon (Powerful Daemon for APC UPSs) | http://www.apcupsd.com/


## Combined YAML source

View the package source record on GitHub. [combined/apcupsd.yml](https://github.com/mxcl/pkgdb/blob/main/combined/apcupsd.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
