# 安装 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/13ee7b80cb813542594d4235c4a0b8695435d5ecf23dd3580bc7515ae1b6180d-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/155b97171d05e27afd950b6fe0d55513ff38f4597110664535bceedc680bbe6fd459f0733718dcc21dcf0efc7c8250fd1390c73d4790b42e62fb2c16a87242e5-primary.xml.zst

## 软件包事实

- **软件包键:** brew:apcupsd
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/apcupsd>
- **版本:** 3.14.14
- **来源摘要:** Daemon for controlling APC UPSes
- **主页:** <http://www.apcupsd.org>
- **上游文档:** <http://www.apcupsd.org>
- **许可证:** GPL-2.0-only
- **源码归档:** <https://downloads.sourceforge.net/project/apcupsd/apcupsd%20-%20Stable/3.14.14/apcupsd-3.14.14.tar.gz>
- **更新:** 2026-02-18T16:45:17+01:00
- **生成来源:** 2026-05-27T17:15:27+00:00

## 可执行文件

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

## 依赖

- gd
- libusb-compat

## 安装行为

- post-install 钩子: 未定义
- Caveats: For apcupsd to be able to communicate with UPSes connected via USB, the kernel extension must be installed by the root user: sudo cp -pR $HOMEBREW_CELLAR/apcupsd/3.14.14/Library/Extensions/ApcupsdDummy.kext /System/Library/Extensions/ sudo chown -R root:wheel /System/Library/Extensions/ApcupsdDummy.kext sudo touch /System/Library/Extensions/ Note: The kernel extension currently does not work as expected. You will have to unplug and plug the USB cable back in after each reboot in order for apcupsd to be able to connect to the UPS. To load apcupsd at startup, activate the included Launch Daemon: sudo cp $HOMEBREW_CELLAR/apcupsd/3.14.14/lib/Library/LaunchDaemons/org.apcupsd.apcupsd.plist /Library/LaunchDaemons sudo chmod 644 /Library/LaunchDaemons/org.apcupsd.apcupsd.plist sudo launchctl load -w /Library/LaunchDaemons/org.apcupsd.apcupsd.plist If this is an upgrade and you already have the Launch Daemon loaded, you have to unload the Launch Daemon before reinstalling it: sudo launchctl unload -w /Library/LaunchDaemons/org.apcupsd.apcupsd.plist sudo rm /Library/LaunchDaemons/org.apcupsd.apcupsd.plist
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## 新鲜度

- 页面生成时间: 2026-05-27
- 管理器版本: 3.14.14
- 管理器更新时间: 2026-02-18
- 本地数据: ok
- 上游仓库: http://www.apcupsd.org
- info: Release/tag comparison is only available for GitHub repositories.

## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** green / low
- narrow executable package without higher-risk signals

## 相关链接

- [gd](https://www.automicvault.com/pkg/brew/gd/) - Runtime dependency declared by Homebrew.
- [libusb-compat](https://www.automicvault.com/pkg/brew/libusb-compat/) - Runtime dependency declared by Homebrew.

## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- package version freshness
- package relationship graph
- cross-ecosystem install command graph
