# 使用 Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, zypper, scoop, winget 安装 smartmontools

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

## 安装

```sh
sudo av install brew:smartmontools
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install smartmontools
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install smartmontools
```

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

### Linux

- apk (92%):

```sh
sudo apk add smartmontools
```

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

- Debian apt (92%):

```sh
sudo apt install smartmontools
```

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

- dnf (92%):

```sh
sudo dnf install smartmontools
```

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

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

- pacman (92%):

```sh
sudo pacman -S smartmontools
```

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

- zypper (92%):

```sh
sudo zypper install smartmontools
```

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

### Windows

- Chocolatey (92%):

```sh
choco install smartmontools
```

  证据: Chocolatey community package catalog: smartmontools from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','skaffold'

- Scoop (92%):

```sh
scoop install main/smartmontools
```

  证据: Scoop official bucket manifest trees: bucket/smartmontools.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id smartmontools.smartmontools -e
```

  证据: Windows Package Manager source index: smartmontools.smartmontools from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:smartmontools
- **软件包管理器:** Homebrew
- **版本:** 7.5
- **来源摘要:** SMART hard drive monitoring
- **主页:** <https://www.smartmontools.org/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- smartctl (别名)
- smartd (别名)
- update-smart-drivedb (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

smartmontools is the long-running SMART disk health toolkit behind the `smartctl` and `smartd` commands. It is a standard systems package because it exposes drive diagnostics, background monitoring, and failure warnings across ATA/SATA, SCSI/SAS, NVMe, and several operating systems.

### 项目历史

The project README says smartmontools was originally derived from the Linux smartsuite package. Its old NEWS file shows 5.x releases already active in 2002 and 2003, with the 5.19 release in October 2003 moving the build to autoconf and automake and adding signed tarballs and RPMs.

### 采用历史

smartmontools became a cross-platform infrastructure utility rather than a single Linux tool. The README lists Linux, BSDs, Darwin/macOS, Solaris, Windows, Cygwin, OS/2, eComStation, and QNX, and the supplied package metadata records packaging across Homebrew, Debian, Ubuntu, Fedora, Arch, Nix, Scoop, Chocolatey, winget, MacPorts, and other managers.

### 使用方式

`smartctl` is used interactively or in scripts to inspect drive identity, SMART attributes, logs, tests, and health status. `smartd` runs as a daemon and reads `/usr/local/etc/smartd.conf` at startup when present, giving administrators a package-managed monitoring service instead of ad hoc disk checks.

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

Package maintainers care because smartmontools is hardware-facing, multi-OS, daemonized, and database-driven. It touches service files, manpage path substitution, release signing, drive database updates, and new storage protocols such as NVMe, all of which stress ordinary package recipes.

### 时间线

- 2002: 5.0-era smartmontools releases were already shipping, according to the old NEWS file.
- 2003: Release 5.19 moved the project to autoconf/automake and signed tarballs/RPMs.
- 2016: Release 6.5 added experimental NVMe support on FreeBSD, Linux, and Windows.
- 2018: Release 7.0 added experimental JSON output and more NVMe support.
- 2025: GitHub repository description says it became the official upstream repository on 2025-06-01.

### Related projects

- The README names Linux smartsuite as the original base. The modern package includes `smartctl`, `smartd`, and `update-smart-drivedb`.

### 来源

- <https://github.com/smartmontools/smartmontools README: package purpose, smartsuite derivation, supported disk protocols and operating systems.>
- <https://raw.githubusercontent.com/smartmontools/smartmontools/main/doc/old/NEWS-5.0-7.5.txt: release chronology, autoconf/automake move, NVMe and JSON additions.>
- <https://raw.githubusercontent.com/smartmontools/smartmontools/main/src/smartd.conf.5.in: `/usr/local/etc/smartd.conf` documented as the smartd configuration file.>
- input source_facts.package-manager: broad package-manager availability.


## 安全说明

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

- Debian apt - smartmontools - 7.4-3: normalized package name match | Debian stable package indexes: smartmontools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | control and monitor storage systems using S.M.A.R.T. | https://www.smartmontools.org/
- Nix - smartmontools: normalized package name match | nixpkgs package indexes: pkgs/by-name/sm/smartmontools/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - smartmontools - 7.4-2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: smartmontools from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | control and monitor storage systems using S.M.A.R.T. | https://www.smartmontools.org/
- apk - smartmontools - 7.5-r0: normalized package name match | Alpine Linux edge package indexes: smartmontools from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Control and monitor S.M.A.R.T. enabled hard drives | https://www.smartmontools.org/
- apk - smartmontools-dbg - 7.5-r0: normalized package name match | Alpine Linux edge package indexes: smartmontools-dbg from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Control and monitor S.M.A.R.T. enabled hard drives (debug symbols) | https://www.smartmontools.org/
- apk - smartmontools-doc - 7.5-r0: normalized package name match | Alpine Linux edge package indexes: smartmontools-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Control and monitor S.M.A.R.T. enabled hard drives (documentation) | https://www.smartmontools.org/
- apk - smartmontools-openrc - 7.5-r0: normalized package name match | Alpine Linux edge package indexes: smartmontools-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Control and monitor S.M.A.R.T. enabled hard drives (OpenRC init scripts) | https://www.smartmontools.org/
- dnf - smartmontools - 7.5-8.fc45: normalized package name match | Fedora Rawhide package metadata: smartmontools from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Tools for monitoring SMART capable hard disks | https://www.smartmontools.org/
- dnf - smartmontools-selinux - 7.5-8.fc45: normalized package name match | Fedora Rawhide package metadata: smartmontools-selinux from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | SELinux policies for smartmontools | https://www.smartmontools.org/
- pacman - smartmontools - 7.5-1: normalized package name match | Arch Linux sync databases: smartmontools from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Control and monitor S.M.A.R.T. enabled ATA and SCSI Hard Drives | https://www.smartmontools.org/
- zypper - smartmontools - 7.5-5.3: normalized package name match | openSUSE Tumbleweed package metadata: smartmontools from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Monitor for SMART devices | https://www.smartmontools.org/
- MacPorts - smartmontools: normalized package name match | MacPorts ports tree: sysutils/smartmontools/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - smartmontools: normalized package name match | Chocolatey community package catalog: smartmontools from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','skaffold'
- Scoop - main/smartmontools: normalized package name match | Scoop official bucket manifest trees: bucket/smartmontools.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - smartmontools.smartmontools: normalized package name match | Windows Package Manager source index: smartmontools.smartmontools from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

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