Skip to content
Permalink
bc5a12b3c9
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
175 lines (165 sloc) 4.43 KB
---
layout: base
---
{% assign t = site.data.locales[page.lang][page.lang] %}
<div id="information">
<ul>
<li>
<div class="group row">
<h2 id="install">{{ t.pagecontent.install.install }}</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>{{ t.pagecontent.install.paste }}</p>
</div>
<div class="col-2">
<p>{{ t.pagecontent.install.what }}</p>
</div>
</div>
</li>
<li>
<div class="group row">
<h2 id="question">{{ t.pagecontent.question }}</h2>
<br>
<div class="col-1">
<p>{{ t.pagecontent.what }}</p>
</div>
<div class="col-2">
{% highlight bash %}
$ brew install wget
{% endhighlight %}
</div>
</div>
</li>
<li>
<div class="group row">
<div class="col-1">
<p>{{ t.pagecontent.how }}</p>
</div>
<div class="col-2">
{% highlight bash %}
$ cd /usr/local
$ find Cellar
Cellar/wget/1.16.1
Cellar/wget/1.16.1/bin/wget
Cellar/wget/1.16.1/share/man/man1/wget.1
$ ls -l bin
bin/wget -> ../Cellar/wget/1.16.1/bin/wget
{% endhighlight %}
</div>
</div>
</li>
<li>
<div class="group row">
<div class="col-1">
<p>{{ t.pagecontent.prefix }}</p>
</div>
</div>
</li>
<li>
<div class="group row">
<div class="col-1">
<p>{{ t.pagecontent.createpackages }}</p>
</div>
<div class="col-2">
{% highlight bash %}
$ brew create https://foo.com/bar-1.0.tgz
Created /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/bar.rb
{% endhighlight %}
</div>
</div>
</li>
<li>
<div class="group row">
<div class="col-1">
<p>{{ t.pagecontent.hack }}</p>
</div>
<div class="col-2">
{% highlight bash %}
$ brew edit wget # {{ t.pagecontent.editor }}
{% endhighlight %}
</div>
</div>
</li>
<li>
<div class="group row">
<div class="col-1">
<p>{{ t.pagecontent.formula }}</p>
</div>
<div class="col-2">
{% highlight ruby %}
class Wget < Formula
homepage "https://www.gnu.org/software/wget/"
url "https://ftp.gnu.org/gnu/wget/wget-1.15.tar.gz"
sha256 "52126be8cf1bddd7536886e74c053ad7d0ed2aa89b4b630f76785bac21695fcd"
def install
system "./configure", "--prefix=#{prefix}"
system "make", "install"
end
end
{% endhighlight %}
</div>
</div>
</li>
<li>
<div class="group row">
<div class="col-1">
<p>{{ t.pagecontent.complement }}</p>
</div>
</div>
</li>
<li>
<div class="group row">
<h2 id="further-doc">{{ t.pagecontent.doc.further }}</h2>
<div class="button">
<p><a href="https://docs.brew.sh">docs.brew.sh</a></p>
</div>
</div>
</li>
<li>
<div class="group row">
<h2 id="further-doc">{{ t.pagecontent.doc.patreon }}</h2>
<div class="button">
<p><a href="https://www.patreon.com/homebrew">patreon.com/homebrew</a></p>
</div>
</div>
</li>
<li>
<div class="group row">
<h2 id="homebrew-community">{{ t.pagecontent.doc.community }}</h2>
<div class="button">
<p><a href="https://discourse.brew.sh">discourse.brew.sh</a></p>
</div>
</div>
</li>
<li>
<div class="group row">
<h2 id="homebrew-blog">{{ t.pagecontent.doc.blog }}</h2>
<div class="button">
<p><a href="/blog/">brew.sh/blog</a></p>
</div>
</div>
</li>
<li>
<div class="group row">
<h2 id="homebrew-formulae">{{ t.pagecontent.doc.formulae }}</h2>
<div class="button">
<p><a href="http://formulae.brew.sh">formulae.brew.sh</a></p>
</div>
</div>
</li>
<li>
<div class="group row">
<h2 id="analytics-data">{{ t.pagecontent.doc.analytics }}</h2>
<div class="button">
<p><a href="/analytics/">brew.sh/analytics</a></p>
</div>
</div>
</li>
<li>
<div class="group row credits">
<p>{{ t.pagecontent.foot.code }} {{ t.pagecontent.foot.page }} {{ t.pagecontent.foot.translation }}</p>
</div>
</li>
</ul>
</div>