chef-dk icon indicating copy to clipboard operation
chef-dk copied to clipboard

Any Documentation/script to remove chefdk from linux system?

Open yogeshlc opened this issue 4 years ago • 4 comments

Is there any documentation to uninstall chefdk from linux system. I got a link to uninstall complete chef (https://docs.chef.io/uninstall/) but there is no mention about chefdk.

Is there any ready made script/ documentation to remove/unistall chefdk?

yogeshlc avatar Apr 09 '20 13:04 yogeshlc

From https://chef.readthedocs.io/en/latest/install_workstation.html

Uninstall

The Chef development kit can be uninstalled using the steps below that are appropriate for the platform on which the Chef development kit is installed.

Debian Use the following command to remove the Chef development kit on Debian-based platforms:

$ dpkg -P chefdk Mac OS X Use the following commands to remove the Chef development kit on Mac OS X.

To remove installed files:

$ sudo rm -rf /opt/chefdk To remove the system installation entry:

$ sudo pkgutil --forget com.getchef.pkg.chefdk To remove the symlinks under /usr/bin:

$ sudo find /usr/bin -lname '/opt/chefdk/*' -delete Red Hat Enterprise Linux Use the following commands to remove the Chef development kit on Red Hat Enterprise Linux-based platforms:

$ rpm -qa *chefdk* or:

$ yum remove Microsoft Windows Use Add / Remove Programs to remove the Chef development kit on the Microsoft Windows platform.

yogeshlc avatar Apr 13 '20 05:04 yogeshlc

Closing this issue by linking to exiting issue which is similar one. Link Issue: Document how to uninstall chefdk #17

yogeshlc avatar Apr 13 '20 05:04 yogeshlc

Reopening this issue as Issue #17 is closed and dont have enough input.

yogeshlc avatar Apr 13 '20 06:04 yogeshlc

I Tried following command,

sudo yum remove -y chefdk-3.9.0-1.el7.x86_64

which has removed the chefdk completely. Still need to see which all reference links are still hanging.

yogeshlc avatar Apr 13 '20 06:04 yogeshlc