Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to uninstall GVM

Tags:

grails

groovy

gvm

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.

like image 278
pestrella Avatar asked Feb 14 '13 15:02

pestrella


2 Answers

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)

like image 62
tim_yates Avatar answered Oct 11 '22 23:10

tim_yates


  • 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.

like image 45
LTN Avatar answered Oct 11 '22 21:10

LTN