diff --git a/Library/Contributions/manpages/brew.1.md b/Library/Contributions/manpages/brew.1.md
index ac641368b48eb092184c1a7d560d930cdb4a25a0..b9b50db65523be2736ac10a26d986df8745407ff 100644
--- a/Library/Contributions/manpages/brew.1.md
+++ b/Library/Contributions/manpages/brew.1.md
@@ -269,7 +269,7 @@ Note that these flags should only appear after a command.
     surrounded with slashes, then it is interpreted as a regular expression.
     If no search term is given, all available formula are displayed.
 
-  * `search --debian`|`--fedora`|`--fink`|`--macports`|`--opensuse` <text>:
+  * `search --debian`|`--fedora`|`--fink`|`--macports`|`--opensuse`|`--ubuntu` <text>:
     Search for <text> in the given package manager's list.
 
   * `sh [--env=std]`:
diff --git a/Library/Homebrew/cmd/search.rb b/Library/Homebrew/cmd/search.rb
index 651534595e293be4d09e6471200d1485dab41098..f18f21ca31707c57cc5d7fd9b0e74196754b1107 100644
--- a/Library/Homebrew/cmd/search.rb
+++ b/Library/Homebrew/cmd/search.rb
@@ -15,6 +15,8 @@ module Homebrew extend self
       exec_browser "http://software.opensuse.org/search?q=#{ARGV.next}"
     elsif ARGV.include? '--fedora'
       exec_browser "https://admin.fedoraproject.org/pkgdb/acls/list/*#{ARGV.next}*"
+    elsif ARGV.include? '--ubuntu'
+      exec_browser "http://packages.ubuntu.com/search?keywords=#{ARGV.next}&searchon=names&suite=all&section=all"
     elsif (query = ARGV.first).nil?
       puts_columns Formula.names
     else
diff --git a/share/man/man1/brew.1 b/share/man/man1/brew.1
index 2b634a9935eace6f7a072c61bb325e214c8735c6..73bbac19a49c9af5de609eca2d1e572fdc655312 100644
--- a/share/man/man1/brew.1
+++ b/share/man/man1/brew.1
@@ -296,7 +296,7 @@ If \fB\-\-force\fR is passed, and there are multiple versions of \fIformula\fR i
 Perform a substring search of formula names for \fItext\fR\. If \fItext\fR is surrounded with slashes, then it is interpreted as a regular expression\. If no search term is given, all available formula are displayed\.
 .
 .TP
-\fBsearch \-\-debian\fR|\fB\-\-fedora\fR|\fB\-\-fink\fR|\fB\-\-macports\fR|\fB\-\-opensuse\fR \fItext\fR
+\fBsearch \-\-debian\fR|\fB\-\-fedora\fR|\fB\-\-fink\fR|\fB\-\-macports\fR|\fB\-\-opensuse\fR|\fB\-\-ubuntu\fR \fItext\fR
 Search for \fItext\fR in the given package manager\'s list\.
 .
 .TP