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

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

  证据: openSUSE Tumbleweed package metadata: sensors from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-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
- **版本:** 3.6.2
- **来源摘要:** Tools for monitoring the temperatures, voltages, and fans
- **主页:** <https://github.com/hramrach/lm-sensors>
- **仓库:** <https://github.com/hramrach/lm-sensors>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

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

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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

- 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.2-r0: 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.2-r0: 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.2-r0: 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.2-r0: 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.2-r0: 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


## Combined YAML source

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