apt-get: command not found in mac osx even after installing homebrew
<p>I am trying to run a r markdown file but got an error message </p>

<blockquote>
  <p>"! LaTeX Error: File `titling.sty' not found."</p>
</blockquote>

<p>From googling around, the internet is telling me to do this in the terminal:</p>

<pre><code>sudo apt-get install texlive-latex-extra
</code></pre>

<p>Tried that and got:</p>

<pre><code>apt-get: command not found
</code></pre>

<p>More googling around told me to install hombrew, which I already have. Nevertheless I uninstalled and re-installed homebrew but same error was shown afterwards.</p>

<p>I found anoter post that told me to do this:</p>

<pre><code>brew install wget
</code></pre>

<p>That installed correctly.</p>

<p>But then when I run <code>sudo apt-get install texlive-latex-extra</code> again I get the same apt-get not found message.</p>

<p>I'm on Osx 10.9</p>