Last active
August 29, 2015 14:02
-
-
Save silviud/1948cac07285ee41d1f6 to your computer and use it in GitHub Desktop.
uninstall chefdk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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