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

Uninstall instructions for Chef DK. #81

Merged
merged 2 commits into from
Jun 26, 2014
Merged

Conversation

sersut
Copy link

@sersut sersut commented Jun 25, 2014

Fixes #17.

@lamont-granquist can you check my *nix terminology? 😄

sudo pkgutil --forget com.getchef.pkg.chefdk

# Remove the symlinks under /usr/bin for Chef Development Kit
ls -la /usr/bin | egrep '/opt/chefdk' | awk '{ print $9 }' | sudo xargs -I '{}' rm -f /usr/bin/'{}'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just the suggestion here to use xargs -J% rm -f /usr/bin/%

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per man xargs:

If this option is specified, xargs will use the data read from standard input to replace the first occurrence of replstr ........

-J only changes the first occurence of %. However using % is a better idea so I'll use that instead of '{}'.

sersut pushed a commit that referenced this pull request Jun 26, 2014
@sersut sersut merged commit 49346be into master Jun 26, 2014
@sersut sersut deleted the sersut/uninstall-instructions branch June 26, 2014 03:42
@chef-boneyard chef-boneyard locked and limited conversation to collaborators Feb 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Document how to uninstall chefdk
2 participants