How to uninstall GVM
Asked Answered
P

2

19

I use GVM to manage my Groovy/Grails environment.

How do I uninstall GVM and all the candidates currently installed?

I suspect one would simply just delete the ~/.gvm directory. Surprisingly the GVM website doesn't seem to mention how to do this, nor is there documentation to confirm how this is done.

Promiscuity answered 14/2, 2013 at 15:29 Comment(0)
C
39

Deleting the ~/.gvm directory and removing the lines:

#THIS MUST BE AT THE END OF THE FILE FOR GVM TO WORK!!!
[[ -s "~/.gvm/bin/gvm-init.sh" && ! $(which gvm-init.sh) ]] && source "~/.gvm/bin/gvm-init.sh"

From ~/.bash_profile (or ~/.profile), ~/.bashrc and ~/.zshrc should do it (assuming a default install)

Capitalism answered 14/2, 2013 at 15:32 Comment(2)
Will this also delete any jars/libraries that were downloaded for previously developed grails projects? I'm curious as to where grails installs its dependencies.Promiscuity
No, they will be in the ~/.grails folder as normal. And Groovy Grapes are in ~/.groovy/grapesCapitalism
R
5
  • Un-install Groovy/Grail: gvm uninstall groovy/grail version
  • Delete /.gvm directory and line in .profile or .bash (as steps above)
  • Delete ~/.groovy directory (this is groovy log location)

That will clean up gvm and its environment.

Robtrobust answered 16/4, 2015 at 14:53 Comment(2)
Thats the better answer. See gvm help for all available commands.Yawn
That won't remove the directories from the PATH environment variable. The answer by @Capitalism mentions that too.Israelisraeli

© 2022 - 2024 — McMap. All rights reserved.