如何卸载Chef-Client和整个Chef软件包 [英] How to uninstall chef-client and the whole Chef package

查看:236
本文介绍了如何卸载Chef-Client和整个Chef软件包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

卸载Chef-Client是否像删除目录一样简单,并确保它不在rc文件中?有没有办法使用刀来卸载Chef-Client?

Is uninstalling Chef-Client just as easy as removing the directory, and making sure its not in the rc files? Is there a way to use knife to uninstall chef-client?

-2013-06-26_EDIT-

--2013-06-26_EDIT--

更新此问题,例如,在使用1.)Omnibus安装程序和2.)自举节点之后,如何从OS X和Linux中删除Chef及其所有其他组件?由于我试图在Mac上使用Chef,并且安装了RVM,因此Chef无法正常工作,因此,现在,我需要弄清楚如何删除Chef。

Updating this question to say, how to remove chef and all its other pieces from OS X, and Linux after using 1.) The Omnibus installer, and 2.) A bootstrapped node? Since I was trying to use Chef on my Mac, and had RVM installed, chef would not work, so now, I need to figure out how to remove chef.

-2015-03-08编辑-

似乎Opscode提出了自己的卸载ChefDK的说明。就代理而言,使用包管理器或添加/删除程序是相同的方法。

http://docs.chef.io/install_dk.html#uninstall

--2015-03-08 EDIT --
Seems Opscode has put out their own instructions for uninstalling ChefDK. As far as the agent goes, it'd be the same method, using the package manager, or Add/Remove Programs.
http://docs.chef.io/install_dk.html#uninstall

推荐答案

到为了帮助回答我自己的问题,我发现取决于Chef的安装方式,取决于您如何卸载它。您可以执行以下操作:

To help answer my own question, I found that depending on how you install Chef, depends on how you uninstall it. You can do the:

Redhat / CentOS

Redhat/CentOS

rpm -qa *chef*
yum remove <package>

或者如果您将其与红宝石宝石一起安装:

Or if you installed it with ruby gems:

gem uninstall chef-<version>

但是,对于使用Omnibus安装程序,没有RPM软件包,并且在我的Mac OSX上10.6.8,我什么都找不到。因此,我意识到Chef是独立的,因此我只删除了 / opt / 目录中的目录。完成此操作后,就可以使用我的RVM Ruby了。

However, for using an Omnibus installer, there wasn't an RPM package, and on my Mac OSX 10.6.8, I couldn't find anything about it. So, I realized that chef is self-contained, so I just deleted the directory in the /opt/ directory. Once I did that, I was able to use my RVM Ruby's.

-2015-03-08--

Opscode提供了自己的卸载ChefDK和代理的说明。

http://docs.chef.io/install_dk.html#uninstall

--2015-03-08--
Opscode provides their own instructions for uninstalling ChefDK, and the Agent.
http://docs.chef.io/install_dk.html#uninstall

这篇关于如何卸载Chef-Client和整个Chef软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆