title: Auto yes to the License Agreement on sudo apt-get -y install oracle-java7-installer
body: <p>The Oracle Java package for Ubuntu interactively asks about the License Agreement. So I have to say 'OK' and then 'yes' every time, but I'd like to automate it. What I do is this:</p>
  
  <pre><code>sudo add-apt-repository -y ppa:webupd8team/java
  sudo apt-get update
  sudo apt-get -y install oracle-java7-installer 
  </code></pre>
  
  <p>Is there a simple way to automate the agreement process without using expect?</p>