卸载厨师 - 客户

时间:2015-06-18 11:52:05

标签: linux chef

我正在尝试在Linux环境(RHEL 6.5)中设置厨师服务器和工作站。我使用了厨师服务器版本11.0.10。在设置厨师工作站时,我安装了12.3版。

由于我在执行knife configure命令时遇到问题,我正在尝试卸载chef-client并安装版本11.0.0。

我执行了以下命令来卸载chef-client:

rpm -qa \*chef\*  
yum remove <package>

当我尝试安装chef-client 11.0.0时,我收到如下错误:

from package chef-12.3.0-1.el6.x86_64
    file /opt/chef/embedded/share/terminfo/x/xnuppc-144x48 from install of chef-11.0.0-1.el6.x86_64 conflicts with file from package chef-12.3.0-1.el6.x86_64
    file /opt/chef/embedded/share/terminfo/x/xnuppc-144x48-m from install of chef-11.0.0-1.el6.x86_64 conflicts with file from package chef-12.3.0-1.el6.x86_64
    file /opt/chef/embedded/share/terminfo/x/xnuppc-160x64 from install of chef-11.0.0-1.el6.x86_64 conflicts with file from package chef-12.3.0-1.el6.x86_64

  file /opt/chef/embedded/ssl/misc/c_info from install of chef-11.0.0-1.el6.x86_64 conflicts with file from package chef-12.3.0-1.el6.x86_64
    file /opt/chef/embedded/ssl/misc/c_issuer from install of chef-11.0.0-1.el6.x86_64 conflicts with file from package chef-12.3.0-1.el6.x86_64
    file /opt/chef/embedded/ssl/misc/c_name from install of chef-11.0.0-1.el6.x86_64 conflicts with file from package chef-12.3.0-1.el6.x86_64
    file /opt/chef/embedded/ssl/misc/tsget from install of chef-11.0.0-1.el6.x86_64 conflicts with file from package chef-12.3.0-1.el6.x86_64
    file /opt/chef/embedded/ssl/openssl.cnf from install of chef-11.0.0-1.el6.x86_64 conflicts with file from package chef-12.3.0-1.el6.x86_64
    file /opt/chef/version-manifest.txt from install of chef-11.0.0-1.el6.x86_64 conflicts with file from package chef-12.3.0-1.el6.x86_64

非常感谢任何解决此问题的建议。提前谢谢。

2 个答案:

答案 0 :(得分:0)

我不是rpm专家,但似乎安装了另一个版本的软件包(12.3.0)。

检查是否属实,以及安装原因,可能会让您解决问题。

答案 1 :(得分:0)

我能够使用-e标志完全删除厨师包。

尝试:

rpm -e packagename