How To Install stlink on Fedora 34

stlink is STM32 discovery line Linux programmer STM32 discovery line Linux programmer

Introduction

In this tutorial we learn how to install stlink on Fedora 34.

STLINK v1/v2 JTAG/SWD debugging/flashing tool for STM32 microcontrollers. stlink 1.7.0 1.fc34 x86_64 110 k stlink-1.7.0-1.fc34.src.rpm updates STM32 discovery line Linux programmer https BSD STLINK v1/v2 JTAG/SWD debugging/flashing tool for STM32 microcontrollers.

We can use yum or dnf to install stlink on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install stlink.

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install stlink using dnf by running the following command:

sudo dnf -y install stlink

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install stlink using yum by running the following command:

sudo yum -y install stlink

To uninstall only the stlink package we can use the following command:

sudo dnf remove stlink
/etc/modprobe.d/stlink_v1.conf
/usr/bin/st-flash
/usr/bin/st-info
/usr/bin/st-trace
/usr/bin/st-util
/usr/lib/.build-id
/usr/lib/.build-id/65
/usr/lib/.build-id/65/033ccfeca659e3c2944e57cf5eceb1f9cb00f4
/usr/lib/.build-id/a4
/usr/lib/.build-id/a4/5c7798947ea327e7204e2095723c4a4528ef45
/usr/lib/.build-id/bb
/usr/lib/.build-id/bb/ea7ef3ab98d645bd6bd4234effeea2537e5695
/usr/lib/.build-id/bd
/usr/lib/.build-id/bd/76b84a7778b85b0f0347c8e0f9abcc9a8179f0
/usr/lib/.build-id/ef
/usr/lib/.build-id/ef/830e5784995638cffcdd0b7e279304c588b566
/usr/lib/libstlink.so.1
/usr/lib/libstlink.so.1.7.0
/usr/lib/udev/rules.d/49-stlinkv1.rules
/usr/lib/udev/rules.d/49-stlinkv2-1.rules
/usr/lib/udev/rules.d/49-stlinkv2.rules
/usr/lib/udev/rules.d/49-stlinkv3.rules
/usr/share/doc/stlink
/usr/share/doc/stlink/CHANGELOG.md
/usr/share/doc/stlink/README.md
/usr/share/licenses/stlink
/usr/share/licenses/stlink/LICENSE.md
/usr/share/man/man1/st-flash.1.gz
/usr/share/man/man1/st-info.1.gz
/usr/share/man/man1/st-util.1.gz
/etc/modprobe.d/stlink_v1.conf
/usr/bin/st-flash
/usr/bin/st-info
/usr/bin/st-trace
/usr/bin/st-util
/usr/lib/.build-id
/usr/lib/.build-id/74
/usr/lib/.build-id/74/1f9729819898e97eb8d24963c1a77b384d8b30
/usr/lib/.build-id/88
/usr/lib/.build-id/88/533b8c032768da2e0ea12f546198fffe23f01b
/usr/lib/.build-id/af
/usr/lib/.build-id/af/ae9b1071dd7956125d961aa1a2e510234d209e
/usr/lib/.build-id/bc
/usr/lib/.build-id/bc/8c058510ab50cb8ec38d66429ff67df93d4815
/usr/lib/.build-id/ee
/usr/lib/.build-id/ee/6ed7f755a32d28bdfe83b05af010a299f0ad7c
/usr/lib/udev/rules.d/49-stlinkv1.rules
/usr/lib/udev/rules.d/49-stlinkv2-1.rules
/usr/lib/udev/rules.d/49-stlinkv2.rules
/usr/lib/udev/rules.d/49-stlinkv3.rules
/usr/lib64/libstlink.so.1
/usr/lib64/libstlink.so.1.7.0
/usr/share/doc/stlink
/usr/share/doc/stlink/CHANGELOG.md
/usr/share/doc/stlink/README.md
/usr/share/licenses/stlink
/usr/share/licenses/stlink/LICENSE.md
/usr/share/man/man1/st-flash.1.gz
/usr/share/man/man1/st-info.1.gz
/usr/share/man/man1/st-util.1.gz
/etc/modprobe.d/stlink_v1.conf
/usr/bin/st-flash
/usr/bin/st-info
/usr/bin/st-util
/usr/lib/.build-id
/usr/lib/.build-id/51
/usr/lib/.build-id/51/7fef3f95f9a073d29c768eea6f5abce7c070df
/usr/lib/.build-id/8a
/usr/lib/.build-id/8a/5e6496169d60afd841fbf0204789bacae089ad
/usr/lib/.build-id/8e
/usr/lib/.build-id/8e/c25c98c5c912ac6e228b9f30a5232173c998a6
/usr/lib/.build-id/fd
/usr/lib/.build-id/fd/8bca4010ec448102f659cf16c7c00f0c0dc751
/usr/lib/libstlink.so.1
/usr/lib/libstlink.so.1.6.1
/usr/lib/udev/rules.d/49-stlinkv1.rules
/usr/lib/udev/rules.d/49-stlinkv2-1.rules
/usr/lib/udev/rules.d/49-stlinkv2.rules
/usr/lib/udev/rules.d/49-stlinkv3.rules
/usr/share/doc/stlink
/usr/share/doc/stlink/CHANGELOG.md
/usr/share/doc/stlink/README.md
/usr/share/licenses/stlink
/usr/share/licenses/stlink/LICENSE.md
/usr/share/man/man1/st-flash.1.gz
/usr/share/man/man1/st-info.1.gz
/usr/share/man/man1/st-util.1.gz
/etc/modprobe.d/stlink_v1.conf
/usr/bin/st-flash
/usr/bin/st-info
/usr/bin/st-util
/usr/lib/.build-id
/usr/lib/.build-id/65
/usr/lib/.build-id/65/8c0ee29d5c41b4faeaf7581d7c935080f76a17
/usr/lib/.build-id/90
/usr/lib/.build-id/90/d84a8403a945297e561f9b52c36a5c30ee4e5d
/usr/lib/.build-id/a1
/usr/lib/.build-id/a1/c5dd2576eada9acfde1d99a4e91ff24cca9af7
/usr/lib/.build-id/f2
/usr/lib/.build-id/f2/5ee34a3d25bf828a6294e569fe998414ebaee8
/usr/lib/udev/rules.d/49-stlinkv1.rules
/usr/lib/udev/rules.d/49-stlinkv2-1.rules
/usr/lib/udev/rules.d/49-stlinkv2.rules
/usr/lib/udev/rules.d/49-stlinkv3.rules
/usr/lib64/libstlink.so.1
/usr/lib64/libstlink.so.1.6.1
/usr/share/doc/stlink
/usr/share/doc/stlink/CHANGELOG.md
/usr/share/doc/stlink/README.md
/usr/share/licenses/stlink
/usr/share/licenses/stlink/LICENSE.md
/usr/share/man/man1/st-flash.1.gz
/usr/share/man/man1/st-info.1.gz
/usr/share/man/man1/st-util.1.gz

References

Summary

In this tutorial we learn how to install stlink on Fedora 34 using yum and dnf.