cancel
Showing results for 
Search instead for 
Did you mean: 

How do I uninstall STM32CubeIDE from macOS?

BFrau.1
Associate

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!

1 ACCEPTED SOLUTION

Accepted Solutions
Julien D
ST Employee

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

View solution in original post

2 REPLIES 2
Julien D
ST Employee

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

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