Skip to main content
BFrau.1
Associate
Feb 14, 2020 5:10 PM UTC
Solved

How do I uninstall STM32CubeIDE from macOS?

I would like to remove STM32CubeIDE (v1.2.0) from my Mac (os 10.14.6).

Removing the IDE is straightforward, just drag the .app to the trash. But how do I remove the ST Link Server from my machine? The ST Link Server Installer doesn't specify where it is putting files on my Mac, and I would like to remove these too.

Thanks!

This topic has been closed for replies.
Julien D
Julien DBest answer
ST Employee
Feb 14, 2020 6:10 PM UTC

Hi BFrau.1,

Here is the way to remove packages on MacOS:

# retrieve package name
$ pkgutil --pkgs | grep stlink
com.st.pkg.st-stlink-server
 
# check root package location
$ pkgutil --pkg-info com.st.pkg.st-stlink-server
package-id: com.st.pkg.st-stlink-server
version: xxxx
volume: /
location: /
install-time: xxxx
 
# list package file
$ pkgutil --only-files --files com.st.pkg.st-stlink-server
usr/local/bin/stlink-server
usr/local/lib/libusb-1.0.0.dylib
usr/local/lib/libusb-1.0.dylib
 
# manually remove such files (never understood why it's not done by the next command)
$ sudo rm /usr/local/bin/stlink-server /usr/local/lib/libusb-1.0.0.dylib /usr/local/lib/libusb-1.0.dylib
 
# remove the package from database
$ sudo pkgutil --forget com.st.pkg.st-stlink-server

HTH ;)

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

2 replies

Julien D
Julien DBest answer
ST Employee
Feb 14, 2020 6:10 PM UTC

Hi BFrau.1,

Here is the way to remove packages on MacOS:

# retrieve package name
$ pkgutil --pkgs | grep stlink
com.st.pkg.st-stlink-server
 
# check root package location
$ pkgutil --pkg-info com.st.pkg.st-stlink-server
package-id: com.st.pkg.st-stlink-server
version: xxxx
volume: /
location: /
install-time: xxxx
 
# list package file
$ pkgutil --only-files --files com.st.pkg.st-stlink-server
usr/local/bin/stlink-server
usr/local/lib/libusb-1.0.0.dylib
usr/local/lib/libusb-1.0.dylib
 
# manually remove such files (never understood why it's not done by the next command)
$ sudo rm /usr/local/bin/stlink-server /usr/local/lib/libusb-1.0.0.dylib /usr/local/lib/libusb-1.0.dylib
 
# remove the package from database
$ sudo pkgutil --forget com.st.pkg.st-stlink-server

HTH ;)

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
BFrau.1
BFrau.1Author
Associate
Feb 17, 2020 3:52 PM UTC

Thanks a lot, Julien. This was exactly what I was looking for!