# 使用 Homebrew, apt, dnf, MacPorts, pacman, zypper 安装 stk

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

## 安装

```sh
sudo av install brew:stk
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install stk
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install stk
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install libstk-5.0.0
```

  证据: Debian stable package indexes: libstk-5.0.0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install stk
```

  证据: Fedora Rawhide package metadata: stk from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- pacman (92%):

```sh
sudo pacman -S stk
```

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

- Ubuntu apt (92%):

```sh
sudo apt install libstk-4.6.2
```

  证据: Ubuntu 24.04 LTS package indexes: libstk-4.6.2 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz

- zypper (92%):

```sh
sudo zypper install libstk4.6.2
```

  证据: openSUSE Tumbleweed package metadata: libstk4.6.2 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## 软件包事实

- **软件包键:** brew:stk
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/stk>
- **版本:** 5.0.1
- **来源摘要:** Sound Synthesis Toolkit
- **主页:** <https://ccrma.stanford.edu/software/stk/>
- **仓库:** <https://github.com/thestk/stk>
- **上游文档:** <https://ccrma.stanford.edu/software/stk>
- **许可证:** MIT
- **源码归档:** <https://ccrma.stanford.edu/software/stk/release/stk-5.0.1.tar.gz>
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- treesed (cli)
- treesed (别名)

## 构建依赖

- autoconf
- automake

## 安装行为

- post-install 钩子: 未定义
- 注意事项: The header files have been put in a standard search path, it is possible to use an include statement in programs as follows: #include "stk/FileLoop.h" #include "stk/FileWvOut.h" src/ projects/ and rawwaves/ have all been copied to $HOMEBREW_PREFIX/opt/stk/share/stk
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 5.0.1
- 本地数据: OK
- 上游仓库: https://ccrma.stanford.edu/software/stk/
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

The Synthesis ToolKit in C++ is an open source set of audio signal-processing and algorithmic-synthesis classes by Perry R. Cook and Gary P. Scavone. It is less a single end-user CLI than a portable audio-programming toolkit that package managers carry for developers, researchers, and music-software builders.

### 项目历史

The official README credits Cook and Scavone and dates STK to 1995-2023. It says STK was designed for rapid development of music synthesis and audio-processing software, with emphasis on cross-platform functionality, realtime control, ease of use, and educational examples.

### 采用历史

STK's README notes that it has existed in one form or another since 1996 and supports Linux, Macintosh OS X, and Windows for realtime audio and MIDI, with generic non-realtime builds on other C++ platforms. The GitHub project mirrors that academic and cross-platform history into a form modern package managers can fetch and build.

### 使用方式

Users consume STK as headers, source, raw waves, documentation, and example programs. It can generate AU, WAV, AIFF, raw, and MAT-file output and can be driven by MIDI, Tcl/Tk GUI scripts, or SKINI control messages.

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

Package maintainers care about STK because it is a compact, source-available C++ audio toolkit with examples, docs, and platform-specific build paths. It bridges older computer-music research culture and contemporary Unix package distribution.

### 时间线

- 1995: Official README credits STK to Perry R. Cook and Gary P. Scavone beginning in 1995.
- 1996: Official README says STK has been available in one form or another since 1996.
- 2013: The thestk/stk GitHub repository was created.
- 2023: Official README credits the project span as 1995-2023.

### Related projects

- Tcl/Tk is used for simple GUI scripts in the official distribution.
- SKINI is STK's MIDI-like text-message synthesis control format.
- The CCRMA Stanford site is the official documentation surface named by the README.

### 来源

- <https://api.github.com/repos/thestk/stk>
- <https://ccrma.stanford.edu/software/stk>
- <https://github.com/thestk/stk#readme>
- 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:** stk
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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

- Debian apt - libstk-5.0.0 - 5.0.1+dfsg-1+b1: normalized package name match | Debian stable package indexes: libstk-5.0.0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Sound Synthesis Toolkit | https://ccrma.stanford.edu/software/stk/
- Debian apt - libstk-dev - 5.0.1+dfsg-1+b1: normalized package name match | Debian stable package indexes: libstk-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Sound Synthesis Toolkit (development files) | https://ccrma.stanford.edu/software/stk/
- Debian apt - stk - 5.0.1+dfsg-1+b1: normalized package name match | Debian stable package indexes: stk from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Sound Synthesis Toolkit (example applications) | https://ccrma.stanford.edu/software/stk/
- Debian apt - stk-doc - 5.0.1+dfsg-1: normalized package name match | Debian stable package indexes: stk-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Sound Synthesis Toolkit (documentation) | https://ccrma.stanford.edu/software/stk/
- Ubuntu apt - libstk-4.6.2 - 4.6.2+dfsg-2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libstk-4.6.2 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Sound Synthesis Toolkit | https://ccrma.stanford.edu/software/stk/
- Ubuntu apt - libstk-dev - 4.6.2+dfsg-2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libstk-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Sound Synthesis Toolkit (development files) | https://ccrma.stanford.edu/software/stk/
- Ubuntu apt - stk - 4.6.2+dfsg-2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: stk from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Sound Synthesis Toolkit (example applications) | https://ccrma.stanford.edu/software/stk/
- Ubuntu apt - stk-doc - 4.6.2+dfsg-2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: stk-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Sound Synthesis Toolkit (documentation) | https://ccrma.stanford.edu/software/stk/
- dnf - stk - 4.6.1-12.fc44: normalized package name match | Fedora Rawhide package metadata: stk from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Synthesis ToolKit in C++ | https://ccrma.stanford.edu/software/stk/
- dnf - stk-demo - 4.6.1-12.fc44: normalized package name match | Fedora Rawhide package metadata: stk-demo from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Demo applications for stk | https://ccrma.stanford.edu/software/stk/
- dnf - stk-devel - 4.6.1-12.fc44: normalized package name match | Fedora Rawhide package metadata: stk-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Development files for stk | https://ccrma.stanford.edu/software/stk/
- pacman - stk - 5.0.1-4: normalized package name match | Arch Linux sync databases: stk from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | The Synthesis ToolKit in C++ | https://ccrma.stanford.edu/software/stk/
- zypper - libstk4.6.2 - 4.6.2-1.11: normalized package name match | openSUSE Tumbleweed package metadata: libstk4.6.2 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Synthesis ToolKit in C++ | https://ccrma.stanford.edu/software/stk/
- zypper - stk-data - 4.6.2-1.11: normalized package name match | openSUSE Tumbleweed package metadata: stk-data from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Data files for STK, a music synthesis library | https://ccrma.stanford.edu/software/stk/
- zypper - stk-devel - 4.6.2-1.11: normalized package name match | openSUSE Tumbleweed package metadata: stk-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Development files for STK, a music synthesis library | https://ccrma.stanford.edu/software/stk/
- MacPorts - stk: normalized package name match | MacPorts ports tree: audio/stk/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Media and graphics packages](https://www.automicvault.com/zh-hans/pkg/media-graphics-tools/) - Matched media, image, audio, video, or graphics metadata.
- [Homebrew utility packages](https://www.automicvault.com/zh-hans/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [autoconf](https://www.automicvault.com/zh-hans/pkg/brew/autoconf/) - Build dependency declared by Homebrew.
- [automake](https://www.automicvault.com/zh-hans/pkg/brew/automake/) - Build dependency declared by Homebrew.
- [csound](https://www.automicvault.com/zh-hans/pkg/brew/csound/) - Popular package that depends on this formula.
- [mpdscribble](https://www.automicvault.com/zh-hans/pkg/brew/mpdscribble/) - Shares av.db curated category or tags: audio, c-plus-plus, cli, media.
- [speech-tools](https://www.automicvault.com/zh-hans/pkg/brew/speech-tools/) - Shares av.db curated category or tags: audio, c-plus-plus, cli, media.
- [taglib](https://www.automicvault.com/zh-hans/pkg/brew/taglib/) - Shares av.db curated category or tags: audio, c-plus-plus, cli, media.
- [vamp-plugin-sdk](https://www.automicvault.com/zh-hans/pkg/brew/vamp-plugin-sdk/) - Shares av.db curated category or tags: audio, c-plus-plus, cli, media.
- [abcde](https://www.automicvault.com/zh-hans/pkg/brew/abcde/) - Shares av.db curated category or tags: audio, cli, media.
- [adplay](https://www.automicvault.com/zh-hans/pkg/brew/adplay/) - Shares av.db curated category or tags: audio, cli, media.
- [adplug](https://www.automicvault.com/zh-hans/pkg/brew/adplug/) - Shares av.db curated category or tags: audio, cli, media.

## Combined YAML source

View the package source record on GitHub. [combined/stk.yml](https://github.com/automic-vault/db/blob/main/combined/stk.yml)


## 来源

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