Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

alternative source for installing git. brew install git; kernel.org Down for maintenance

Tags:

git

homebrew

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!

like image 936
fluxsaas Avatar asked Sep 09 '11 10:09

fluxsaas


4 Answers

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.

like image 114
Sotomajor Avatar answered Nov 20 '22 18:11

Sotomajor


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

like image 26
Day Davis Waterbury Avatar answered Nov 20 '22 17:11

Day Davis Waterbury


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'
like image 3
Bryan Woodcox Avatar answered Nov 20 '22 19:11

Bryan Woodcox


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'

like image 2
Tadashi Shigeoka Avatar answered Nov 20 '22 19:11

Tadashi Shigeoka