Skip to content

Instantly share code, notes, and snippets.

@silviud
Last active August 29, 2015 14:02
Show Gist options
  • Save silviud/1948cac07285ee41d1f6 to your computer and use it in GitHub Desktop.
Save silviud/1948cac07285ee41d1f6 to your computer and use it in GitHub Desktop.
uninstall chefdk
if [ -e /opt/chefdk ]; then
rm -rf /opt/chefdk
else
echo "can not found chefdk"
fi
rm /usr/bin/berks
rm /usr/bin/chef
rm /usr/bin/chef-apply
rm /usr/bin/chef-solo
rm /usr/bin/chef-zero
rm /usr/bin/chef-client
rm /usr/bin/chef-server-manager
rm /usr/bin/chef-shell
rm /usr/bin/fauxhai
rm /usr/bin/foodcritic
rm /usr/bin/kitchen
rm /usr/bin/knife
rm /usr/bin/nokogiri
rm /usr/bin/ohai
rm /usr/bin/rubocop
rm /usr/bin/ruby-parse
rm /usr/bin/ruby-rewrite
rm /usr/bin/shef
rm /usr/bin/strain
rm /usr/bin/strainer
rm /usr/bin/tt
pkgutil --forget com.getchef.pkg.chefdk
# uninstall chef
if [ -e /opt/chef ]; then
for f in `ls /opt/chef/bin/`; do rm -i /usr/bin/$f; done
rm -rf /opt/chef
else
echo "can not found chef"
fi
pkgutil --forget com.getchef.pkg.chef
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment