title: STDERR: Command line error: no such option: --force-yes
body: <p>I'm trying to install <strong>Java</strong> using my Chef cookbook via <strong>Kitchen</strong> + <strong>Vagrant</strong>. The operating system is <strong>CentOS 7.3</strong>.</p>
  
  <p>Because I had some conflicts with <code>filesystem-3.2-21.el7.x86_64</code> caused by the  Java version, I decided to force the installation.</p>
  
  <p>So I decided to follow the next example from the <a href="https://docs.chef.io/resource_package.html" rel="nofollow noreferrer">official chef documentation</a>:</p>
  
  <blockquote>
    <p>Install a package with options</p>
  
  <pre><code>package 'debian-archive-keyring' do
    action :install
    options '--force-yes'
  end
  </code></pre>
  </blockquote>
  
  <p>I converted it to:</p>
  
  <pre><code>package "bf-sun-java" do
    version node['java_version']
    action :install
    options '--force-yes'
  end
  </code></pre>
  
  <p>but I got the following error:</p>
  
  <blockquote>
    <p>STDERR: Command line error: no such option: <code>--force-yes</code></p>
  </blockquote>
  
  <p>Why is <code>--force-yes</code> mentioned in that example if Chef doesn't recognize it?</p>