安装 git 的替代来源。酿造安装git; kernel.org 停机维护

发布于 2024-12-03 14:56:14 字数 86 浏览 0 评论 0 原文

我刚刚注意到 kernel.org 因维护而关闭。是否有使用不同镜子的不同公式?或者我可以添加不同的源(如捆绑器?)到自制程序吗?

谢谢帮助!

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!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(8

皓月长歌 2024-12-10 14:56:14

快速解决方法:
履行
brew edit git

并放入

url 'https://github.com/git/git/tarball/v1.7.6.1'

md5 'ab731cf9b99529f3f8d126aa15d9a1cd'

代替

url 'http://kernel.org/pub/software/scm/git/git-1.7.6.1.tar.bz2'

md5 'd1e00772cc9dc6c571999feb9e8771ab'

也放

<代码>网址'http://ftp.uk.freesbie.org/sites/ftp.kernel.org/pub/software/scm/git-core/git-manpages-1.7.6.1.tar.bz2

url 'http://kernel.org/pub/software/scm/git/git-manpages-1.7.6.1.tar.bz2'

并且还放置

url 'http://ftp.ntu.edu.tw/ftp/pub2/software/scm/git/git-htmldocs-1.7.6.1.tar.bz2'< /code>

而不是

url 'http://kernel.org/pub/software/scm/git/git-htmldocs-1.7.6.1.tar.bz2'

保存并在该类型之后brew 安装 git

当 Linus 完成 kernelorg 的维护后,您可以恢复所有这些更改。

更新:
还添加了 htmldocs 的镜像。感谢找到该网址的 Tadashi Shigeoka。

更新:
最近的自制软件版本包含镜像,因此您不需要使用此技巧。

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.

动听の歌 2024-12-10 14:56:14

2015 年更新: 假设您有 ruby​​,解决方案会简单得多

@Sharpie 几年前添加了镜像支持。这里最重要的答案是不必要的工作。改为这样做:

ruby -e“$(curl -fsSL https://raw.githubusercontent.com /Homebrew/install/master/install)"

然后:

酿造安装git

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

温柔嚣张 2024-12-10 14:56:14

我无法解析 git-manpages 的链接。这些手册页也可以在上面的 git-htmldocs url 中找到。

url 'http://ftp.ntu.edu.tw/ftp/pub2/software/scm/git/git-manpages-1.7.6.1.tar.bz2'

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'
蔚蓝源自深海 2024-12-10 14:56:14

我找到镜像站点下载'git-htmldocs-1.7.6.1.tar.bz2'

网址:http://ftp.ntu.edu.tw/ftp/pub2/software/scm/git/

put

网址
'http://ftp.ntu.edu.tw/ftp/pub2/software/scm/git/git-htmldocs-1.7.6.1.tar.bz2'

而不是

网址
'http://kernel.org/pub/software/scm/git/git-htmldocs-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'

梦里°也失望 2024-12-10 14:56:14

我发现在尝试安装手册页时 freesbie.net 已关闭,但您可以

url 'http://distfiles.macports.org/git-core/git-manpages-1.7.6.1.tar.bz2'

使用

url 'http://ftp.uk.freesbie.org/sites/ftp.kernel.org/pub/software/scm/git-core/git-manpages-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'
月亮邮递员 2024-12-10 14:56:14

git-htmldocs url 有问题,不断被同行重置连接。

注意到文件已下载并保存在 /Users/vish/Library/Caches/Homebrew 中,

因此只需从 git-htmldocs-1.7.6.1.tar.bz2 href="http://git.exherbo.org/summer/packages/dev-scm/git/index.html" rel="nofollow">此处
并将其移动到目录中。

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.

琴流音 2024-12-10 14:56:14

HTML 文档可在此处获取:

  http://mirror.linux.org.au/software/scm/git/

the HTML docs are available here:

  http://mirror.linux.org.au/software/scm/git/
始终不够 2024-12-10 14:56:14

Git 源代码也镜像在 github 上(我忘记了在哪里,但快速搜索就能找到它)

Git source is also mirrored on github (I forget where off the top of my head, but a quick search will find it)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文