alternative source for installing git. brew install git; kernel.org Down for maintenance
Question
i just noticed that kernel.org is Down for maintenance. is there a different formula which uses a different mirror ? or could i add a different source (like bundler?) to homebrew?
thx for help!
Solution
Quick workaround:
Perform
brew edit git
And put
url 'https://github.com/git/git/tarball/v1.7.6.1'
md5 'ab731cf9b99529f3f8d126aa15d9a1cd'
Instead of
url 'http://kernel.org/pub/software/scm/git/git-1.7.6.1.tar.bz2'
md5 'd1e00772cc9dc6c571999feb9e8771ab'
Also put
url 'http://ftp.uk.freesbie.org/sites/ftp.kernel.org/pub/software/scm/git-core/git-manpages-1.7.6.1.tar.bz2
instead of
url 'http://kernel.org/pub/software/scm/git/git-manpages-1.7.6.1.tar.bz2'
And also put
url 'http://ftp.ntu.edu.tw/ftp/pub2/software/scm/git/git-htmldocs-1.7.6.1.tar.bz2'
instead of
url 'http://kernel.org/pub/software/scm/git/git-htmldocs-1.7.6.1.tar.bz2'
Save and after that type brew install git
.
When Linus is done with kernelorg's maintenance, you can revert all these changes.
UPDATE: Added mirror for htmldocs as well. Credits to Tadashi Shigeoka who found the url.
UPDATE: Recent homebrew revision contains mirrors, so that you don't need to use this hack.
OTHER TIPS
Updated for 2015: The solution is much simpler asssuming you have ruby.
@Sharpie added mirror support several years ago. The top answer here is more work than necessary. Do this instead:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
And then:
brew install git
I had trouble resolving the link to the git-manpages. The manpages are also available at the above git-htmldocs url.
url 'http://ftp.ntu.edu.tw/ftp/pub2/software/scm/git/git-manpages-1.7.6.1.tar.bz2'
I found the mirror site to download 'git-htmldocs-1.7.6.1.tar.bz2'
url: http://ftp.ntu.edu.tw/ftp/pub2/software/scm/git/
put
url 'http://ftp.ntu.edu.tw/ftp/pub2/software/scm/git/git-htmldocs-1.7.6.1.tar.bz2'
instead of
url 'http://kernel.org/pub/software/scm/git/git-htmldocs-1.7.6.1.tar.bz2'
I found out that freesbie.net was down when trying to install the manpages but you can use
url 'http://distfiles.macports.org/git-core/git-manpages-1.7.6.1.tar.bz2'
instead of
url 'http://ftp.uk.freesbie.org/sites/ftp.kernel.org/pub/software/scm/git-core/git-manpages-1.7.6.1.tar.bz2'
Had an issue with git-htmldocs
url, kept getting connection reset by peer.
Noticed that the files were downloaded and kept in /Users/vish/Library/Caches/Homebrew
So just downloaded git-htmldocs-1.7.6.1.tar.bz2
from here
and moved it into the directory.
the HTML docs are available here:
http://mirror.linux.org.au/software/scm/git/
Git source is also mirrored on github (I forget where off the top of my head, but a quick search will find it)