# 使用 Homebrew, apk, dnf, MacPorts, Nix, pacman, zypper, apt, scoop 安装 stlink

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

## 安装

```sh
sudo av install brew:stlink
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install stlink
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install stlink
```

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

### Linux

- apk (92%):

```sh
sudo apk add stlink
```

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

- dnf (92%):

```sh
sudo dnf install stlink
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#stlink
```

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

- pacman (92%):

```sh
sudo pacman -S stlink
```

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

- zypper (92%):

```sh
sudo zypper install stlink
```

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

- Debian apt (92%):

```sh
sudo apt install libstlink-dev
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/stlink
```

  证据: Scoop official bucket manifest trees: bucket/stlink.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:stlink
- **软件包管理器:** Homebrew
- **版本:** 1.8.0
- **来源摘要:** STM32 discovery line Linux programmer
- **主页:** <https://github.com/stlink-org/stlink>
- **仓库:** <https://github.com/stlink-org/stlink>
- **最后更新:** 2026-07-13T17:31:48+09:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- st-flash (别名)
- st-info (别名)
- st-trace (别名)
- st-util (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

stlink is an open source command-line toolset for programming and debugging STM32 microcontrollers through ST-LINK adapters. It is important in package-manager culture because it gives Unix-like systems a readily installable path to flash and debug common embedded boards.

### 项目历史

The official README describes stlink as an open source version of the STMicroelectronics STLINK tools and an open source toolset to program and debug STM32 devices and boards. The GitHub repository was created in 2011 and continues to track support for multiple ST-LINK hardware generations.

### 采用历史

The project documents package-repository installation for Linux and Unix systems and lists Windows binaries on GitHub releases. The input package data shows distribution across Homebrew, Debian, Fedora, MacPorts, Nix, Arch, Scoop, Ubuntu, and openSUSE-related package managers.

### 使用方式

The toolset includes st-info for programmer and chip information, st-flash for flash manipulation, st-trace for execution logging, st-util as a GDB server, a communication library, and an optional GUI. It supports STLINK/V1, V2, V2-1, and V3 families, including clones.

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

For package maintainers and embedded developers, stlink is a hardware-adjacent package where udev rules, libusb compatibility, OS support, and release packaging matter. It turns a common microcontroller workflow into standard package-manager install plus shell commands.

### 时间线

- 2011: The stlink-org/stlink GitHub repository was created.
- 2019: The README marks STLINK/V1 obsolete as of 2019-11-21 while continuing support in the toolset.
- 2020: Release v1.6.1 restored standalone Windows binaries according to the README.
- 2024: Release v1.8.0 dropped macOS support according to the README and release notes.

### Related projects

- STMicroelectronics STM32 boards and ST-LINK adapters are the hardware target.
- GDB connects through st-util for debugging.
- Cortex-Debug is named by the README as a Visual Studio Code/VSCodium integration for st-util.

### 来源

- <https://api.github.com/repos/stlink-org/stlink>
- <https://github.com/stlink-org/stlink#readme>
- <https://github.com/stlink-org/stlink/releases>
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Debian apt - libstlink-dev - 1.8.0-1.1: normalized package name match | Debian stable package indexes: libstlink-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | OpenSource ST-Link tools replacement. | https://github.com/stlink-org/stlink
- Debian apt - libstlink1 - 1.8.0-1.1: normalized package name match | Debian stable package indexes: libstlink1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | OpenSource ST-Link tools replacement. | https://github.com/stlink-org/stlink
- Debian apt - stlink-gui - 1.8.0-1.1: normalized package name match | Debian stable package indexes: stlink-gui from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | OpenSource ST-Link tools replacement. | https://github.com/stlink-org/stlink
- Debian apt - stlink-tools - 1.8.0-1.1: normalized package name match | Debian stable package indexes: stlink-tools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | OpenSource ST-Link tools replacement. | https://github.com/stlink-org/stlink
- Nix - stlink: normalized package name match | nixpkgs package indexes: pkgs/by-name/st/stlink/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libstlink-dev - 1.8.0-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libstlink-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | OpenSource ST-Link tools replacement. | https://github.com/stlink-org/stlink
- Ubuntu apt - libstlink1 - 1.8.0-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libstlink1 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | OpenSource ST-Link tools replacement. | https://github.com/stlink-org/stlink
- Ubuntu apt - stlink-gui - 1.8.0-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: stlink-gui from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | OpenSource ST-Link tools replacement. | https://github.com/stlink-org/stlink
- Ubuntu apt - stlink-tools - 1.8.0-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: stlink-tools from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | OpenSource ST-Link tools replacement. | https://github.com/stlink-org/stlink
- apk - stlink - 1.8.0-r1: normalized package name match | Alpine Linux edge package indexes: stlink from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | STM32 discovery line linux programmer | https://github.com/stlink-org/stlink
- apk - stlink-dev - 1.8.0-r1: normalized package name match | Alpine Linux edge package indexes: stlink-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | STM32 discovery line linux programmer (development files) | https://github.com/stlink-org/stlink
- apk - stlink-doc - 1.8.0-r1: normalized package name match | Alpine Linux edge package indexes: stlink-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | STM32 discovery line linux programmer (documentation) | https://github.com/stlink-org/stlink
- apk - stlink-udev - 1.8.0-r1: normalized package name match | Alpine Linux edge package indexes: stlink-udev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | STM32 discovery line linux programmer (udev rules) | https://github.com/stlink-org/stlink
- dnf - stlink - 1.8.0-12.fc45: normalized package name match | Fedora Rawhide package metadata: stlink from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | STM32 discovery line Linux programmer | https://github.com/stlink-org/stlink
- dnf - stlink-devel - 1.8.0-12.fc45: normalized package name match | Fedora Rawhide package metadata: stlink-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Include files and mandatory libraries for development | https://github.com/stlink-org/stlink
- dnf - stlink-gui - 1.8.0-12.fc45: normalized package name match | Fedora Rawhide package metadata: stlink-gui from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | GUI for STM32 discovery line linux programmer | https://github.com/stlink-org/stlink


## Combined YAML source

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


## 来源

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