# 使用 Homebrew, apk, apt, dnf, Nix, pacman, scoop, winget, zypper 安装 lm-sensors

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

## 安装

```sh
sudo av install brew:lm-sensors
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install lm-sensors
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add lm-sensors
```

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

- Debian apt (92%):

```sh
sudo apt install fancontrol
```

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

- dnf (92%):

```sh
sudo dnf install lm_sensors
```

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

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

- pacman (92%):

```sh
sudo pacman -S lm_sensors
```

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

- zypper (92%):

```sh
sudo zypper install libsensors4
```

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

### Windows

- Scoop (92%):

```sh
scoop install extras/fancontrol
```

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

- winget (92%):

```sh
winget install --id Rem0o.FanControl -e
```

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

## 软件包事实

- **软件包键:** brew:lm-sensors
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/lm-sensors>
- **版本:** 3.6.2
- **来源摘要:** Tools for monitoring the temperatures, voltages, and fans
- **主页:** <https://github.com/hramrach/lm-sensors>
- **仓库:** <https://github.com/hramrach/lm-sensors>
- **上游文档:** <https://github.com/hramrach/lm-sensors#readme>
- **许可证:** GPL-2.0-or-later OR LGPL-2.1-or-later
- **源码归档:** <https://github.com/hramrach/lm-sensors/archive/refs/tags/V3-6-2.tar.gz>
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- fancontrol (cli)
- pwmconfig (cli)
- sensors (cli)
- sensors-conf-convert (cli)
- sensors-detect (cli)
- fancontrol (别名)
- pwmconfig (别名)
- sensors (别名)
- sensors-conf-convert (别名)
- sensors-detect (别名)

## 构建依赖

- bison
- flex

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, x86_64_linux

## 版本和新鲜度

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

lm-sensors is the Linux user-space package for reading and configuring hardware-monitoring data such as temperatures, voltages, fan speeds, and PWM fan control.

### 项目历史

The current lm-sensors version 3 line provides user-space support for Linux hardware monitoring drivers in Linux 2.6.5 and later, while older kernels require the version 2 line. The package is organized around documentation, sample configuration files, libsensors, and programs such as sensors-detect, sensors, sensord, fancontrol, and pwmconfig.

The version 3 CHANGES file records the 3.0.0 release cycle in 2007, including the initial 3.0.0-rc1 release, the switch to the default /etc/sensors3.conf configuration file during the release candidates, and the 3.0.0 final release in November 2007. Later releases continued to track new kernel hwmon attributes, chip families, JSON output, systemd integration, and new configuration samples.

### 采用历史

lm-sensors became a standard Linux hardware-monitoring plumbing package because the kernel drivers expose data through sysfs, while libsensors supplies board-specific labels and conversion rules that applications can share instead of duplicating. The upstream README asks users to contribute board configurations so others with the same hardware do not need to recreate them.

Package-manager adoption is broad in the supplied package data, with entries across Alpine, Debian, Fedora, Homebrew, Nix, Arch, Ubuntu, and openSUSE families. That matches its role as the CLI backend behind many desktop monitors, server dashboards, and home-lab scripts.

### 使用方式

Typical use starts with running sensors-detect as root so the tool can identify installed hardware and recommend kernel modules. The sensors command reports current readings and can set limits, while sensord can watch values, log alarms, and feed an RRD database.

libsensors reads kernel hwmon data from /sys and applies labels or scaling from configuration files. fancontrol reads its own configuration, usually generated by pwmconfig, and adjusts PWM outputs from temperature readings; upstream warns users to configure fan control carefully because bad settings can damage hardware.

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

lm-sensors is one of those small packages that makes an entire category of system tooling possible. It turns messy per-board hwmon naming into stable CLI and library output, so package maintainers, monitoring stacks, and shell scripts can depend on sensors rather than chasing individual chip drivers.

For Homebrew and other Unix package sets, lm-sensors is interesting because its upstream is Linux-specific even when package metadata can appear in cross-platform indexes. The useful behavior depends on Linux kernel hwmon support, sysfs, and local hardware.

### 时间线

- 2007-09-25: lm-sensors 3.0.0-rc1 is marked as the initial version 3 release.
- 2007-10-28: The 3.0.0-rc3 notes record /etc/sensors3.conf as the default configuration file.
- 2007-11-24: lm-sensors 3.0.0 is released.
- 2019-10-18: lm-sensors 3.6.0 adds JSON-related fixes and many sensor-detection updates.
- 2024-01-13: lm-sensors 3.6.2 adds richer sensor metadata and JSON output changes.

### Related projects

- The Linux kernel hwmon subsystem, libsensors, sensors-detect, fancontrol, pwmconfig, sensord, GNOME Sensors Applet, Psensor, PowerTOP, and s-tui are closely related in the upstream documentation.

### 来源

- <https://github.com/lm-sensors/lm-sensors#readme>
- <https://raw.githubusercontent.com/lm-sensors/lm-sensors/master/CHANGES>
- <https://raw.githubusercontent.com/lm-sensors/lm-sensors/master/lib/sensors.conf.5>
- <https://raw.githubusercontent.com/lm-sensors/lm-sensors/master/prog/pwm/fancontrol>
- <https://raw.githubusercontent.com/lm-sensors/lm-sensors/master/prog/pwm/fancontrol.8>
- source_facts.package-manager-url


## 安全说明

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

- Linux: /etc/sensors3.conf, /etc/sensors.d/*, /etc/fancontrol
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** lm-sensors
- **Version Scheme:** 0
- **Revision:** 0
- **Requirements:** linux
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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

- Debian apt - fancontrol - 1:3.6.2-2: normalized package name match | Debian stable package indexes: fancontrol from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | utility to control the fan speed | https://github.com/hramrach/lm-sensors
- Debian apt - libsensors-config - 1:3.6.2-2: normalized package name match | Debian stable package indexes: libsensors-config from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | lm-sensors configuration files | https://github.com/hramrach/lm-sensors
- Debian apt - libsensors-dev - 1:3.6.2-2: normalized package name match | Debian stable package indexes: libsensors-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | lm-sensors development kit | https://github.com/hramrach/lm-sensors
- Debian apt - libsensors5 - 1:3.6.2-2: normalized package name match | Debian stable package indexes: libsensors5 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library to read temperature/voltage/fan sensors | https://github.com/hramrach/lm-sensors
- Debian apt - lm-sensors - 1:3.6.2-2: normalized package name match | Debian stable package indexes: lm-sensors from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | utilities to read temperature/voltage/fan sensors | https://github.com/hramrach/lm-sensors
- Nix - lm_sensors: normalized package name match | nixpkgs package indexes: pkgs/by-name/lm/lm_sensors/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - fancontrol - 1:3.6.0-9build1: normalized package name match | Ubuntu 24.04 LTS package indexes: fancontrol from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | utility to control the fan speed | https://hwmon.wiki.kernel.org/lm_sensors
- Ubuntu apt - libsensors-config - 1:3.6.0-9build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libsensors-config from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | lm-sensors configuration files | https://hwmon.wiki.kernel.org/lm_sensors
- Ubuntu apt - libsensors-dev - 1:3.6.0-9build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libsensors-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | lm-sensors development kit | https://hwmon.wiki.kernel.org/lm_sensors
- Ubuntu apt - libsensors5 - 1:3.6.0-9build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libsensors5 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | library to read temperature/voltage/fan sensors | https://hwmon.wiki.kernel.org/lm_sensors
- Ubuntu apt - lm-sensors - 1:3.6.0-9build1: normalized package name match | Ubuntu 24.04 LTS package indexes: lm-sensors from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | utilities to read temperature/voltage/fan sensors | https://hwmon.wiki.kernel.org/lm_sensors
- apk - lm-sensors - 3.6.0-r5: normalized package name match | Alpine Linux edge package indexes: lm-sensors from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Collection of user space tools for general SMBus access and hardware monitoring. | https://github.com/lm-sensors/lm-sensors
- apk - lm-sensors-detect - 3.6.0-r5: normalized package name match | Alpine Linux edge package indexes: lm-sensors-detect from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Detection/migration scripts for lm-sensors | https://github.com/lm-sensors/lm-sensors
- apk - lm-sensors-dev - 3.6.0-r5: normalized package name match | Alpine Linux edge package indexes: lm-sensors-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Collection of user space tools for general SMBus access and hardware monitoring. (development files) | https://github.com/lm-sensors/lm-sensors
- apk - lm-sensors-doc - 3.6.0-r5: normalized package name match | Alpine Linux edge package indexes: lm-sensors-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Collection of user space tools for general SMBus access and hardware monitoring. (documentation) | https://github.com/lm-sensors/lm-sensors
- apk - lm-sensors-fancontrol - 3.6.0-r5: normalized package name match | Alpine Linux edge package indexes: lm-sensors-fancontrol from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | fancontrol daemon | https://github.com/lm-sensors/lm-sensors


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [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.
- [bison](https://www.automicvault.com/zh-hans/pkg/brew/bison/) - Build dependency declared by Homebrew.
- [flex](https://www.automicvault.com/zh-hans/pkg/brew/flex/) - Build dependency declared by Homebrew.
- [digitemp](https://www.automicvault.com/zh-hans/pkg/brew/digitemp/) - Shares av.db curated category or tags: cli, sensors, system, temperature.
- [osx-cpu-temp](https://www.automicvault.com/zh-hans/pkg/brew/osx-cpu-temp/) - Shares av.db curated category or tags: cli, hardware-monitoring, system, temperature.
- [owfs](https://www.automicvault.com/zh-hans/pkg/brew/owfs/) - Shares av.db curated category or tags: cli, hardware-monitoring, sensors, system.
- [framework-tool-tui](https://www.automicvault.com/zh-hans/pkg/brew/framework-tool-tui/) - Shares av.db curated category or tags: cli, hardware-monitoring, system.
- [ipmitool](https://www.automicvault.com/zh-hans/pkg/brew/ipmitool/) - Shares av.db curated category or tags: cli, hardware-monitoring, system.
- [ipmiutil](https://www.automicvault.com/zh-hans/pkg/brew/ipmiutil/) - Shares av.db curated category or tags: cli, hardware-monitoring, system.
- [abduco](https://www.automicvault.com/zh-hans/pkg/brew/abduco/) - Shares av.db curated category or tags: cli, system.
- [acl](https://www.automicvault.com/zh-hans/pkg/brew/acl/) - Shares av.db curated category or tags: cli, system.
- [nvtop](https://www.automicvault.com/zh-hans/pkg/brew/nvtop/) - Local package facts share a topical domain. Shared terms: cli, hardware, monitoring, system.

## Combined YAML source

View the package source record on GitHub. [combined/lm-sensors.yml](https://github.com/automic-vault/db/blob/main/combined/lm-sensors.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
