Skip to content
This repository was archived by the owner on Jul 14, 2021. It is now read-only.

Document how to uninstall chefdk #17

Closed
rberger opened this issue Apr 21, 2014 · 8 comments · Fixed by #81
Closed

Document how to uninstall chefdk #17

rberger opened this issue Apr 21, 2014 · 8 comments · Fixed by #81
Labels
Aspect: Documentation How do we use this project?

Comments

@rberger
Copy link
Contributor

rberger commented Apr 21, 2014

It would also be helpful if there was documentation (or better yet an uninstaller app) on how to uninstall ChefDK. I know you can generally just rm -rf /opt/chefdk but there are those pesky symlinks in /usr/bin. Are there any other changes that need to be removed?

It would help remove the unease of installing something that might break existing setups if we knew that we could uninstall it so that the install/uninstall would not break any other styles of installation.

@danielsdeleo
Copy link
Contributor

There will be an uninstall script in a future release. For now, you want to loop over the executables in /opt/chefdk/bin and remove the corresponding symlinks in /usr/bin/. Then you can rm -rf /opt/chefdk and finally pkgutil --forget com.getchef.pkg.chefdk to remove it from the package database. Side note, it would be cool if OS X had an uninstaller.

@yveslaroche
Copy link

@rberger On Mac OSX ChefDK can now be installed with homebrew cask. You can uninstall it with brew cask uninstall chefdk, which will remove the symlinks and com.getchef.pkg.chefdk.

@otukutun
Copy link

I made uninstall script for Mac OS.

https://gist.github.com/otukutun/0106977649dd765eb9b7

@justinredd
Copy link

I recommend you also clear out the chefdk's ruby in your user directory. rm -rf ~/.chefdk/ should do the trick.

@ricardolupo
Copy link

Should I also care about my ~/.gem directory when uninstalling chef-dk?

@jtimberman
Copy link
Contributor

@ricardolupo If you're using ChefDK's ruby as your local system ruby environment, it shouldn't touch ~/.gem.

However I'd be wary about removing /.chefdk entirely on upgrades. That directory is also where the policyfile-downloaded cookbooks are cached (/.chefdk/cache).

@justinredd
Copy link

I remove the ~/.chefdk for those times I've managed to, yet again, totally hose my gems.

@jaseeey
Copy link

jaseeey commented Feb 1, 2016

Thanks @otukutun, your script uninstalled fine for me when run under sudo (or root).

@chef-boneyard chef-boneyard locked and limited conversation to collaborators Feb 14, 2018
@tas50 tas50 added Aspect: Documentation How do we use this project? and removed Type: Documentation labels Jan 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Aspect: Documentation How do we use this project?
Development

Successfully merging a pull request may close this issue.

10 participants