# Install stlink with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, scoop, zypper

STM32 discovery line Linux programmer. Version 1.8.0 via Homebrew; verified from local package data.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install stlink
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install stlink
```

  Evidence: 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
```

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

- Debian apt (92%):

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

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

- dnf (92%):

```sh
sudo dnf install stlink
```

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

- Nix (92%):

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

  Evidence: 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
```

  Evidence: 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 libstlink1
```

  Evidence: openSUSE Tumbleweed package metadata: libstlink1 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

### Windows

- Scoop (92%):

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

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

## Package facts

- **Package key:** brew:stlink
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/stlink>
- **Version:** 1.8.0
- **Source summary:** STM32 discovery line Linux programmer
- **Homepage:** <https://github.com/stlink-org/stlink>
- **Repository:** <https://github.com/stlink-org/stlink>
- **Upstream docs:** <https://github.com/stlink-org/stlink#readme>
- **License:** BSD-3-Clause
- **Source archive:** <https://github.com/stlink-org/stlink/archive/refs/tags/v1.8.0.tar.gz>
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- st-flash (cli)
- st-info (cli)
- st-trace (cli)
- st-util (cli)
- st-flash (alias)
- st-info (alias)
- st-trace (alias)
- st-util (alias)

## Dependencies

- libusb

## Build dependencies

- cmake
- pkgconf

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.8.0
- Local data: ok
- Upstream repository: https://github.com/stlink-org/stlink
- Upstream latest detected: v1.8.0 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

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

### Sources

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


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** stlink
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- 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-6.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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | STM32 discovery line Linux programmer | https://github.com/stlink-org/stlink
- dnf - stlink-devel - 1.8.0-6.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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Include files and mandatory libraries for development | https://github.com/stlink-org/stlink
- dnf - stlink-gui - 1.8.0-6.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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | GUI for STM32 discovery line linux programmer | https://github.com/stlink-org/stlink


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [stm32flash](https://www.automicvault.com/pkg/brew/stm32flash/) - Shares av.db curated category or tags: cli, developer-tools, embedded, firmware-flashing, stm32.
- [gpsim](https://www.automicvault.com/pkg/brew/gpsim/) - Shares av.db curated category or tags: cli, debugging, developer-tools, embedded.
- [probe-rs-tools](https://www.automicvault.com/pkg/brew/probe-rs-tools/) - Shares av.db curated category or tags: cli, debugging, developer-tools, embedded.
- [ufbt](https://www.automicvault.com/pkg/brew/ufbt/) - Shares av.db curated category or tags: cli, debugging, developer-tools, embedded.
- [bossa](https://www.automicvault.com/pkg/brew/bossa/) - Shares av.db curated category or tags: cli, developer-tools, embedded.
- [elf2uf2-rs](https://www.automicvault.com/pkg/brew/elf2uf2-rs/) - Shares av.db curated category or tags: cli, developer-tools, embedded.
- [espflash](https://www.automicvault.com/pkg/brew/espflash/) - Shares av.db curated category or tags: cli, developer-tools, embedded.
- [esptool](https://www.automicvault.com/pkg/brew/esptool/) - Shares av.db curated category or tags: cli, developer-tools, embedded, firmware-flashing.
- [lm4tools](https://www.automicvault.com/pkg/brew/lm4tools/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, embedded, flashing.
- [wb32-dfu-updater_cli](https://www.automicvault.com/pkg/brew/wb32-dfu-updater-cli/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, embedded, firmware.
- [orbuculum](https://www.automicvault.com/pkg/brew/orbuculum/) - Local package facts share a topical domain. Shared terms: cli, debugging, developer, developer-tools, embedded.

## Combined YAML source

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


## Sources

- 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
