# 使用 Homebrew, MacPorts 安装 brightness

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

## 安装

```sh
sudo av install brew:brightness
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install brightness
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install brightness
```

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

## 软件包事实

- **软件包键:** brew:brightness
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/brightness>
- **版本:** 1.2
- **来源摘要:** Change macOS display brightness from the command-line
- **主页:** <https://github.com/nriley/brightness>
- **仓库:** <https://github.com/nriley/brightness>
- **许可证:** BSD-2-Clause
- **源码归档:** <https://github.com/nriley/brightness/archive/refs/tags/1.2.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- brightness (cli)
- brightness (别名)

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.2
- 本地数据: OK
- 上游仓库: https://github.com/nriley/brightness
- 检测到的最新版本: 1.2 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

brightness is a macOS command-line utility for reading and setting display brightness from scripts or the terminal.

### 项目历史

The nriley/brightness repository was created in February 2014, with release 1.2 published in August 2015. The README describes a focused utility for controlling all internal and some external displays from the command line.

Its maintenance history mirrors macOS display API changes. The README notes that documented APIs worked through macOS 10.12.3, then Night Shift in 10.12.4 required an undocumented method, and Apple Silicon Macs later required another undocumented method.

### 采用历史

brightness became a durable small utility for macOS automation users. It is packaged in Homebrew and MacPorts according to the input package facts, has hundreds of GitHub stars, and Homebrew analytics reported several thousand installs over the prior year at lookup time.

### 使用方式

Users run simple commands such as `brightness 1`, `brightness 0.5`, or `brightness -l` to set or list display brightness. The README cautions that displays not controllable through macOS Displays settings generally cannot be controlled by the tool either.

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

brightness is the archetypal tiny macOS system utility package: a single-purpose binary that exists because shell scripts and automation tools need access to a GUI-era hardware setting. Its significance is not breadth, but longevity across changing macOS display internals.

### 时间线

- 2014: Repository created.
- 2015: Release 1.2 published.
- 2017: README documents the macOS 10.12.4 Night Shift-era API break and workaround.
- 2021: Repository history includes Universal 2 build work for Apple Silicon.
- 2026: Homebrew stable version reported as 1.2.

### Related projects

- Homebrew and MacPorts distribute brightness for macOS users.
- macOS display APIs and IOKit-style display enumeration are the system interfaces around which the utility operates.
- Shell scripts, launch agents, and automation workflows are common consumers of this kind of command-line brightness control.

### 来源

- <https://formulae.brew.sh/api/formula/brightness.json>
- <https://github.com/nriley/brightness>
- <https://raw.githubusercontent.com/nriley/brightness/master/README.md>
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

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

## 源数据库详情

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

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

- MacPorts - brightness: normalized package name match | MacPorts ports tree: sysutils/brightness/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [screenresolution](https://pkg.so/zh-hans/brew/screenresolution/) - Shares pkgdb curated category or tags: cli, display, macos, system.
- [redshift](https://pkg.so/zh-hans/brew/redshift/) - Shares pkgdb curated category or tags: cli, display, system.
- [lcdproc](https://pkg.so/zh-hans/brew/lcdproc/) - Shares pkgdb curated category or tags: cli, display, system.
- [libxcvt](https://pkg.so/zh-hans/brew/libxcvt/) - Shares pkgdb curated category or tags: cli, display, system.
- [displayplacer](https://pkg.so/zh-hans/brew/displayplacer/) - Shares pkgdb curated category or tags: cli, display, macos, system.
- [switchaudio-osx](https://pkg.so/zh-hans/brew/switchaudio-osx/) - Shares pkgdb curated category or tags: cli, macos, system, system-utility.
- [m-cli](https://pkg.so/zh-hans/brew/m-cli/) - Shares pkgdb curated category or tags: cli, macos, system, system-utility.
- [mist-cli](https://pkg.so/zh-hans/brew/mist-cli/) - Shares pkgdb curated category or tags: cli, macos, system, system-utility.
- [ddcctl](https://pkg.so/zh-hans/brew/ddcctl/) - Local package facts share a topical domain. Shared terms: brightness, cli, command-line, display, line.

## Combined YAML source

View the package source record on GitHub. [combined/brightness.yml](https://github.com/mxcl/pkgdb/blob/main/combined/brightness.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
