How To Install stlink on Rocky Linux 8
Introduction
In this tutorial we learn how to install stlink on Rocky Linux 8.
What is stlink
STLINK v1/v2 JTAG/SWD debugging/flashing tool for STM32 microcontrollers.
We can use yum or dnf to install stlink on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install stlink.
Install stlink on Rocky Linux 8 Using dnf
Update yum database with dnf using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install stlink using dnf by running the following command:
sudo dnf -y install stlink
Install stlink on Rocky Linux 8 Using yum
Update yum database with yum using the following command.
sudo yum makecache --refresh
After updating yum database, We can install stlink using yum by running the following command:
sudo yum -y install stlink
How To Uninstall stlink on Rocky Linux 8
To uninstall only the stlink package we can use the following command:
sudo dnf remove stlink
stlink Package Contents on Rocky Linux 8
/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/03
/usr/lib/.build-id/03/b671340bad9e22a6433eb52fcb89daac1d5d2e
/usr/lib/.build-id/20
/usr/lib/.build-id/20/799e39ade9dddda1ace5b61578d8580526c5e6
/usr/lib/.build-id/e4
/usr/lib/.build-id/e4/61f224b2fddd1d784be02ce3197c849496164e
/usr/lib/.build-id/e7
/usr/lib/.build-id/e7/58d8f7feb4d326caef976dcee097fbbe94768c
/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 Rocky Linux 8 using yum and dnf.