Skip to main content
BFrau.1
Associate
February 14, 2020
Solved

How do I uninstall STM32CubeIDE from macOS?

  • February 14, 2020
  • 1 reply
  • 3600 views

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.
Best answer by Julien D

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

1 reply

Julien D
Julien DAnswer
ST Employee
February 14, 2020

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
February 17, 2020

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