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

前端 未结 8 716
我寻月下人不归
我寻月下人不归 2020-12-30 21:35

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 hom

相关标签:
8条回答
  • 2020-12-30 22:01

    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.

    0 讨论(0)
  • 2020-12-30 22:08

    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'

    0 讨论(0)
提交回复
热议问题