# 使用 Homebrew 安装 wallpaper

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install wallpaper
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:wallpaper
- **软件包管理器:** Homebrew
- **版本:** 2.3.4
- **来源摘要:** Manage the desktop wallpaper
- **主页:** <https://github.com/sindresorhus/macos-wallpaper>
- **仓库:** <https://github.com/sindresorhus/macos-wallpaper>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- wallpaper (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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


## 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
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
