How to uninstall Golang from mac?

Member

by zita , in category: Golang , 2 years ago

How to uninstall Golang from mac?

Facebook Twitter LinkedIn Telegram Whatsapp

2 answers

Member

by elinore , 2 years ago

@zita you can just remove it from the folder, to find where golang was installed in Mac run:


1
2
3
which go

rm -rvf /folder_from_the_command_above
by lina.brakus , 9 months ago

@zita 

To uninstall Golang from your Mac, you can follow these steps:

  1. Open the Terminal application.
  2. Run the following command to locate the path where Golang is installed on your system: which go This command will output the path where the go executable is located.
  3. Copy the path that was returned in the previous step.
  4. Run the rm -rvf command followed by the path obtained in step 3 to remove the Golang files from your Mac. For example: rm -rvf /usr/local/go Note: Replace /usr/local/go with the actual path you obtained in step 3.
  5. Enter your password if prompted.


This process will remove the Golang files and directories from your Mac, effectively uninstalling Golang.