updated: Friday, 01 July 2022, 06:28:52


Document is valid

size: 15710 bytes, 476 lines
doctype: unknown
encoding: unknown
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="dc.creator" content="Rémi Prévost - http://exomel.com">
    
    <title>Homebrew — The missing package manager for macOS</title>
    
    <!-- Begin Jekyll SEO tag v2.1.0 -->
<meta property="og:title" content="Homebrew" />
<meta name="description" content="The missing package manager for macOS." />
<meta property="og:description" content="The missing package manager for macOS." />
<link rel="canonical" href="http://brew.sh/" />
<meta property="og:url" content="http://brew.sh/" />
<meta property="og:site_name" content="Homebrew" />
<script type="application/ld+json">
{"@context": "http://schema.org",
"@type": "WebSite",
"name": "Homebrew",
"headline": "Homebrew",
"description": "The missing package manager for macOS.",
"url": "http://brew.sh/"}</script>
<!-- End Jekyll SEO tag -->

    <link type="application/atom+xml" rel="alternate" href="http://brew.sh/atom.xml" title="Homebrew" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="shortcut icon" href="/img/favicon.ico">
    <link rel="icon" sizes="16x16" href="/img/favicon-16x16.png" >
    <link rel="icon" sizes="32x32" href="/img/favicon-32x32.png">
    <link rel="icon" sizes="96x96" href="/img/favicon-96x96.png">
    <link rel="icon" sizes="192x192" href="/img/favicon-192x192.png">
    <link rel="apple-touch-icon-precomposed" sizes="57x57" href="/img/apple-touch-icon-57x57-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="72x72" href="/img/apple-touch-icon-72x72-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="76x76" href="/img/apple-touch-icon-76x76-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="114x114" href="/img/apple-touch-icon-114x114-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="120x120" href="/img/apple-touch-icon-120x120-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="144x144" href="/img/apple-touch-icon-144x144-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="/img/apple-touch-icon-152x152-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="180x180" href="/img/apple-touch-icon-180x180-precomposed.png">
    <link rel="stylesheet" href="/css/screen.css" type="text/css" media="screen">
    <link rel="stylesheet" href="/css/pygments.css" type="text/css" media="screen">
    <script>
      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
      })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

      ga('create', 'UA-76679469-2', 'auto');
      ga('set', 'anonymizeIp', true);
      ga('send', 'pageview');

    </script>
    
      
      <link rel="alternate" hreflang="en" href="http://brew.sh" />
      <link rel="alternate" hreflang="x-default" href="http://brew.sh" />
      
    
      
      <link rel="alternate" hreflang="ar" href="http://brew.sh/index_ar.html" />
      
    
      
      <link rel="alternate" hreflang="az" href="http://brew.sh/index_az.html" />
      
    
      
      <link rel="alternate" hreflang="be" href="http://brew.sh/index_be.html" />
      
    
      
      <link rel="alternate" hreflang="bg" href="http://brew.sh/index_bg.html" />
      
    
      
      <link rel="alternate" hreflang="ca" href="http://brew.sh/index_ca.html" />
      
    
      
      <link rel="alternate" hreflang="da" href="http://brew.sh/index_da.html" />
      
    
      
      <link rel="alternate" hreflang="de" href="http://brew.sh/index_de.html" />
      
    
      
      <link rel="alternate" hreflang="es" href="http://brew.sh/index_es.html" />
      
    
      
      <link rel="alternate" hreflang="fa" href="http://brew.sh/index_fa.html" />
      
    
      
      <link rel="alternate" hreflang="fi" href="http://brew.sh/index_fi.html" />
      
    
      
      <link rel="alternate" hreflang="fr" href="http://brew.sh/index_fr.html" />
      
    
      
      <link rel="alternate" hreflang="he" href="http://brew.sh/index_he.html" />
      
    
      
      <link rel="alternate" hreflang="it" href="http://brew.sh/index_it.html" />
      
    
      
      <link rel="alternate" hreflang="ja" href="http://brew.sh/index_ja.html" />
      
    
      
      <link rel="alternate" hreflang="ko" href="http://brew.sh/index_ko.html" />
      
    
      
      <link rel="alternate" hreflang="nl" href="http://brew.sh/index_nl.html" />
      
    
      
      <link rel="alternate" hreflang="no" href="http://brew.sh/index_no.html" />
      
    
      
      <link rel="alternate" hreflang="pl" href="http://brew.sh/index_pl.html" />
      
    
      
      <link rel="alternate" hreflang="pt-BR" href="http://brew.sh/index_pt-br.html" />
      
    
      
      <link rel="alternate" hreflang="ro" href="http://brew.sh/index_ro.html" />
      
    
      
      <link rel="alternate" hreflang="ru" href="http://brew.sh/index_ru.html" />
      
    
      
      <link rel="alternate" hreflang="se" href="http://brew.sh/index_se.html" />
      
    
      
      <link rel="alternate" hreflang="sr" href="http://brew.sh/index_sr.html" />
      
    
      
      <link rel="alternate" hreflang="th" href="http://brew.sh/index_th.html" />
      
    
      
      <link rel="alternate" hreflang="tr" href="http://brew.sh/index_tr.html" />
      
    
      
      <link rel="alternate" hreflang="uk" href="http://brew.sh/index_uk.html" />
      
    
      
      <link rel="alternate" hreflang="vi" href="http://brew.sh/index_vi.html" />
      
    
      
      <link rel="alternate" hreflang="zh-CN" href="http://brew.sh/index_zh-cn.html" />
      
    
      
      <link rel="alternate" hreflang="zh-TW" href="http://brew.sh/index_zh-tw.html" />
      
    
  </head>
  <body>
    <div id="wrap">
      <div id="header" class="">
        <img alt="Homebrew logo" src="/img/homebrew-256x256.png" width="128" height="128">
        <h1><a href="/">Homebrew</a></h1>
        
        <p id="subtitle"><strong>The missing package manager for macOS</strong></p>
        

        
        <select id="language" onchange="loadLanguage(this.options[this.selectedIndex].value)">
          
            
            <option value="en" selected="selected">English</option>
            
          
            
            <option value="ar">العربية</option>
            
          
            
            <option value="az">Azərbaycanca</option>
            
          
            
            <option value="be">Беларуская</option>
            
          
            
            <option value="bg">Български</option>
            
          
            
            <option value="ca">Català</option>
            
          
            
            <option value="da">Dansk</option>
            
          
            
            <option value="de">Deutsch</option>
            
          
            
            <option value="es">Español</option>
            
          
            
            <option value="fa">فارسی</option>
            
          
            
            <option value="fi">Suomi</option>
            
          
            
            <option value="fr">Français</option>
            
          
            
            <option value="he">עברית</option>
            
          
            
            <option value="it">Italiano</option>
            
          
            
            <option value="ja">日本語</option>
            
          
            
            <option value="ko">한국어</option>
            
          
            
            <option value="nl">Nederlands</option>
            
          
            
            <option value="no">Norsk</option>
            
          
            
            <option value="pl">Polski</option>
            
          
            
            <option value="pt-br">Português Brasileiro</option>
            
          
            
            <option value="ro">Română</option>
            
          
            
            <option value="ru">Русский</option>
            
          
            
            <option value="se">Svenska</option>
            
          
            
            <option value="sr">Српски</option>
            
          
            
            <option value="th">ไทย</option>
            
          
            
            <option value="tr">Türkçe</option>
            
          
            
            <option value="uk">Українська</option>
            
          
            
            <option value="vi">Tiếng Việt</option>
            
          
            
            <option value="zh-cn">简体中文</option>
            
          
            
            <option value="zh-tw">繁體中文</option>
            
          
        </select>
        
      </div>

      <div id="informations">
  <ul>
    <li>
      <div class="group row">
        <h2 id="install">Install Homebrew</h2>
        <br>
        <pre style='clear:both;text-align:center;margin-bottom:0.9em'><code id='selectable' onclick="selectText(this)">/usr/bin/ruby -e &quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)&quot;</code></pre>
        <div class="col-1">
          <p>Paste that at a Terminal prompt.</p>
        </div>
        <div class="col-2">
          <p>The script explains what it will do and then pauses before it does it. There are more installation options <a href='https://github.com/Homebrew/brew/blob/master/docs/Installation.md#installation'>here</a> (needed on 10.5).</p>
        </div>
      </div>
    </li>

    <li>
      <div class="group row">
       <h2 id="question">What Does Homebrew Do?</h2>
       <br>
        <div class="col-1">
          <p>Homebrew installs <a href="https://github.com/Homebrew/homebrew-core/tree/master/Formula" title="List of Homebrew packages">the stuff you need</a> that Apple didn’t.</p>
        </div>
        <div class="col-2">
<figure class="highlight"><pre><code class="language-bash" data-lang="bash"><span class="gp">$ </span>brew install wget</code></pre></figure>
        </div>
      </div>
    </li>
    <li>
      <div class="group row">
        <div class="col-1">
          <p>Homebrew installs packages to their own directory and then symlinks their files into <code>/usr/local</code>.</p>
        </div>
        <div class="col-2">
<figure class="highlight"><pre><code class="language-bash" data-lang="bash"><span class="gp">$ </span><span class="nb">cd</span> /usr/local
<span class="gp">$ </span>find Cellar
Cellar/wget/1.16.1
Cellar/wget/1.16.1/bin/wget
Cellar/wget/1.16.1/share/man/man1/wget.1

<span class="gp">$ </span>ls -l bin
bin/wget -&gt; ../Cellar/wget/1.16.1/bin/wget</code></pre></figure>
        </div>
      </div>
    </li>
    <li>
      <div class="group row">
        <div class="col-1">
          <p>Homebrew won’t install files outside its prefix, and you can place a Homebrew installation wherever you like.</p>
        </div>
      </div>
    </li>
    <li>
      <div class="group row">
        <div class="col-1">
          <p>Trivially create your own Homebrew packages.</p>
        </div>
        <div class="col-2">
<figure class="highlight"><pre><code class="language-bash" data-lang="bash"><span class="gp">$ </span>brew create https://foo.com/bar-1.0.tgz
Created /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/bar.rb</code></pre></figure>
        </div>
      </div>
    </li>
    <li>
      <div class="group row">
        <div class="col-1">
          <p>It's all git and ruby underneath, so hack away with the knowledge that you can easily revert your modifications and merge upstream updates.</p>
        </div>
        <div class="col-2">
<figure class="highlight"><pre><code class="language-bash" data-lang="bash"><span class="gp">$ </span>brew edit wget <span class="c"># opens in $EDITOR!</span></code></pre></figure>
        </div>
      </div>
    </li>
    <li>
      <div class="group row">
        <div class="col-1">
          <p>Homebrew formulae are simple Ruby scripts:</p>
        </div>
        <div class="col-2">
<figure class="highlight"><pre><code class="language-ruby" data-lang="ruby"><span class="k">class</span> <span class="nc">Wget</span> <span class="o">&lt;</span> <span class="no">Formula</span>
  <span class="n">homepage</span> <span class="s2">"https://www.gnu.org/software/wget/"</span>
  <span class="n">url</span> <span class="s2">"https://ftp.gnu.org/gnu/wget/wget-1.15.tar.gz"</span>
  <span class="n">sha256</span> <span class="s2">"52126be8cf1bddd7536886e74c053ad7d0ed2aa89b4b630f76785bac21695fcd"</span>

  <span class="k">def</span> <span class="nf">install</span>
    <span class="nb">system</span> <span class="s2">"./configure"</span><span class="p">,</span> <span class="s2">"--prefix=</span><span class="si">#{</span><span class="n">prefix</span><span class="si">}</span><span class="s2">"</span>
    <span class="nb">system</span> <span class="s2">"make"</span><span class="p">,</span> <span class="s2">"install"</span>
  <span class="k">end</span>
<span class="k">end</span></code></pre></figure>
        </div>
      </div>
    </li>
    <li>
      <div class="group row">
        <div class="col-1">
          <p>Homebrew complements macOS. Install your gems with <code>gem</code>, and their dependencies with <code>brew</code>.</p>
        </div>
      </div>
    </li>

    <li>
      <div class="group row">
        <h2 id="further-doc">Further Documentation</h2>
        <div class="button">
          <p><a href="https://git.io/brew-docs">https://git.io/brew-docs</a></p>
        </div>
      </div>
    </li>

    <li>
      <div class="group row">
        <h2 id="homebrew-community">Community Discussion</h2>
        <div class="button">
          <p><a href="http://discourse.brew.sh">http://discourse.brew.sh</a></p>
        </div>
      </div>
    </li>

    <li>
      <div class="group row">
        <h2 id="homebrew-blog">Homebrew Blog</h2>
        <div class="button">
          <p><a href="/blog">http://brew.sh/blog</a></p>
        </div>
      </div>
    </li>

    <li>
      <div class="group row credits">
        <p>Homebrew was created by <a href="https://mxcl.github.io/">Max Howell</a>. Website by <a href="http://exomel.com">Rémi Prévost</a>, <a href="http://mikemcquaid.com">Mike McQuaid</a> and <a href="http://danilalo.com">Danielle Lalonde</a>. </p>
      </div>
    </li>
  </ul>
</div>


    </div>

    <a href="https://github.com/Homebrew/brew/"><img id="forkme" src="https://aral.github.com/fork-me-on-github-retina-ribbons/right-grey@2x.png" alt="Fork me on GitHub"></a>
    <script>
      function selectText(elem) {
        if (document.selection) {
            var range = document.body.createTextRange();
            range.moveToElementText(elem);
            range.select();
        } else if (window.getSelection) {
            var range = document.createRange();
            range.selectNode(elem);
            window.getSelection().addRange(range);
        }
      }

      function loadLanguage(lang) {
        if (lang === "en") {
            return;
        } else if (lang === "en") {
            window.location.replace("/");
        } else {
            window.location.replace("/index_" + lang + ".html");
        }
      }
    </script>
  </body>
</html>
Document is valid
The document was successfully checked