# 使用 Homebrew, apk, Nix, pacman, zypper 安装 spotifyd

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

## 安装

```sh
sudo av install brew:spotifyd
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install spotifyd
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add spotifyd
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#spotifyd
```

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

- pacman (92%):

```sh
sudo pacman -S spotifyd
```

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

- zypper (92%):

```sh
sudo zypper install spotifyd
```

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

## 软件包事实

- **软件包键:** brew:spotifyd
- **软件包管理器:** Homebrew
- **版本:** 0.4.2
- **来源摘要:** Spotify daemon
- **主页:** <https://spotifyd.rs/>
- **仓库:** <https://github.com/Spotifyd/spotifyd>
- **最后更新:** 2026-06-09T15:13:43+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- spotifyd (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Spotifyd is an open-source Spotify client that runs as a Unix daemon, appears as a Spotify Connect device, and is commonly installed on desktops, servers, and headless audio systems.

### 项目历史

The official GitHub repository was created in 2014. Its README describes Spotifyd as an open-source Spotify client running as a Unix daemon, streaming like the official client while being more lightweight and supporting more platforms.

### 采用历史

Spotifyd became a classic package-manager media daemon: the official installation docs mention Linux distro repositories, Homebrew on macOS, FreeBSD, OpenBSD, and release binaries, while the input records Alpine, Homebrew, Nix, Arch, and openSUSE packaging.

### 使用方式

Typical use is to install the daemon, run `spotifyd --no-daemon` for a foreground check, and then manage it as a service. Once running, it appears as a Spotify Connect target controllable from official Spotify clients; advanced users configure authentication, audio backends, MPRIS, systemd, hooks, and D-Bus controls.

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

Package nerds care about Spotifyd because it turns Spotify playback into service infrastructure: config files, cache paths, audio backend feature sets, systemd units, and platform-specific binary choices all matter. It is especially relevant for headless and lightweight machines where the official desktop client is a poor fit.

### 时间线

- 2014: GitHub repository created.
- 2025-11-19: GitHub page lists v0.4.2 as the latest release.
- Current: Official docs describe package installs, release binaries, and service operation.

### Related projects

- The README credits librespot reverse-engineering work as foundational to the project.

### 来源

- <https://api.github.com/repos/Spotifyd/spotifyd: official repository metadata including creation date.>
- <https://docs.spotifyd.rs/: official documentation scope.>
- <https://docs.spotifyd.rs/configuration/: official config-file search paths.>
- <https://docs.spotifyd.rs/configuration/auth.html: official OAuth credential location.>
- <https://docs.spotifyd.rs/installation/index.html: package-manager, release, and running instructions.>
- <https://github.com/Spotifyd/spotifyd README: daemon description, Spotify Connect behavior, Premium requirement, and librespot credit.>
- input.source_facts.package-manager: package-manager presence across Alpine, Homebrew, Nix, Arch, and openSUSE.


## 安全说明

formula declares a Homebrew service.

- **Geiger 风险:** orange / 中
- formula declares a Homebrew service


## 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

- Unix: /etc/spotifyd.conf, $XDG_CONFIG_PATH/spotifyd/spotifyd.conf, ~/.config/spotifyd/spotifyd.conf

## Credential files

- Unix: <cache_path>/oauth/credentials.json
## 其他软件包管理器记录

- Nix - spotifyd: normalized package name match | nixpkgs package indexes: pkgs/by-name/sp/spotifyd/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - spotifyd - 0.4.2-r0: normalized package name match | Alpine Linux edge package indexes: spotifyd from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Open source Spotify client running as a UNIX daemon | https://github.com/Spotifyd/spotifyd
- apk - spotifyd-openrc - 0.4.2-r0: normalized package name match | Alpine Linux edge package indexes: spotifyd-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Open source Spotify client running as a UNIX daemon (OpenRC init scripts) | https://github.com/Spotifyd/spotifyd
- pacman - spotifyd - 0.4.2-1: normalized package name match | Arch Linux sync databases: spotifyd from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Lightweight spotify streaming daemon with spotify connect support | https://github.com/Spotifyd/spotifyd
- zypper - spotifyd - 0.4.2-1.4: normalized package name match | openSUSE Tumbleweed package metadata: spotifyd from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Spotify client running as a UNIX daemon | https://spotifyd.rs/


## Combined YAML source

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