# 使用 Homebrew 安装 wallpaper

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

## 安装

```sh
sudo av install brew:wallpaper
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install wallpaper
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:wallpaper
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/wallpaper>
- **版本:** 2.3.4
- **来源摘要:** Manage the desktop wallpaper
- **主页:** <https://github.com/sindresorhus/macos-wallpaper>
- **仓库:** <https://github.com/sindresorhus/macos-wallpaper>
- **许可证:** MIT
- **源码归档:** <https://github.com/sindresorhus/macos-wallpaper/archive/refs/tags/v2.3.4.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- wallpaper (cli)
- wallpaper (别名)

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma

## 版本和新鲜度

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

macOS Wallpaper is Sindre Sorhus's focused utility and Swift package for getting and setting the desktop wallpaper on macOS. It exists in the long-running niche of command-line desktop customization, where macOS behavior around multiple screens, Spaces, dynamic wallpapers, and interval-rotating folders has historically made simple scripts brittle.

### 项目历史

The project was already releasing as the `wallpaper` command by 2016, when version 1.2.0 added support for desktop backgrounds configured to change on an interval. In 2018, version 2.0.0 was a notable transition: the project was rewritten in Swift, gained multiple-screen support, changed the CLI to explicit `get` and `set` subcommands, and became available as a Swift Package Manager API.

Subsequent releases track macOS platform changes rather than broad feature growth. Releases added Apple silicon support in 2022 and compatibility fixes for newer macOS versions, including macOS 26 fixes in 2025 and 2026.

### 使用方式

The command is used in scripts and small automation workflows that need a stable `wallpaper get` or `wallpaper set` interface instead of direct AppleScript, Dock database, or System Events snippets. The README notes that the package handles the active wallpaper correctly even when the system wallpaper is set to a directory.

### 来源

- <https://github.com/sindresorhus/macos-wallpaper>
- <https://github.com/sindresorhus/macos-wallpaper/releases>
- <https://github.com/sindresorhus/wallpaper>
- <https://github.com/sindresorhus/wallpaper-cli>
- <https://swiftpackageindex.com/sindresorhus/macos-wallpaper>


## 安全说明

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:** wallpaper
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Requirements:** macos, xcode
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable


## 相关链接

- [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.
- [switchaudio-osx](https://pkg.so/zh-hans/brew/switchaudio-osx/) - Shares pkgdb curated category or tags: cli, macos, system, system-utility.
- [brightness](https://pkg.so/zh-hans/brew/brightness/) - 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.
- [launch](https://pkg.so/zh-hans/brew/launch/) - Shares pkgdb curated category or tags: cli, macos, system, system-utility.
- [dbus](https://pkg.so/zh-hans/brew/dbus/) - Shares pkgdb curated category or tags: cli, desktop, system.
- [mole](https://pkg.so/zh-hans/brew/mole/) - Shares pkgdb curated category or tags: cli, macos, system.
- [lima](https://pkg.so/zh-hans/brew/lima/) - Shares pkgdb curated category or tags: cli, macos, system.

## Combined YAML source

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