homebrew安装包在哪_如何安装较旧版本的Homebrew软件包

homebrew安装包在哪

I had this problem: I updated Hugo, which is the CMS I use, and one of the versions that were more recent than the one I used introduced a breaking change.

我遇到了这个问题:我更新了Hugo,这是我使用的CMS,并且其中一个比我使用的版本更新的版本引入了重大更改。

My homepage didn’t list the blog posts any more. I didn’t have the time to figure out why, so I said “I’ll just roll back”.

我的主页不再列出博客文章。 我没有时间弄清楚为什么 ,所以我说“我会后退”。

Now the question became.. “how?”

现在问题变成了..“怎么了?”

First, I uninstalled Hugo:

首先,我卸载了Hugo:

brew unlink hugo

Then I followed the instructions I found on this post. I had to search for the Hugo package formula https://github.com/Homebrew/homebrew-core/search?utf8=%E2%9C%93&q=hugo&type= then I clicked that file (Formula/hugo.rb), and I pressed the History button to see all the previous versions.

然后我按照我在这篇文章中找到的说明进行操作。 我必须搜索Hugo软件包公式https://github.com/Homebrew/homebrew-core/search?utf8=%E2%9C%93&q=hugo&type=然后单击该文件( Formula/hugo.rb ),然后我按了“历史记录”按钮以查看所有以前的版本。

Navigated to the 0.53 version I wanted and I clicked the <> button to see the homebrew-core repository at that point in time. Then I opened the Formula/hugo.rb file, and I clicked Raw to get the direct URL to that file.

导航到我想要的0.53版本,然后单击<>按钮查看当时的homebrew-core存储库。 然后,打开Formula/hugo.rb文件,然后单击Raw以获取该文件的直接URL。

I then used it as the argument for brew install. For example:

然后,我将其用作brew install的参数。 例如:

brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/5441fa16872c9a56bd5997558df45b808f13285b/Formula/hugo.rb

That’s it.

而已。

My next step for solving the problem I had was to uninstall the current version installed, and trying to update one version at a time, so I could isolate the release that introduced the change that was causing me problems.

解决我遇到的问题的下一步是卸载当前安装的版本,并尝试一次更新一个版本,这样我就可以隔离引入引起我问题的更改的发行版。

翻译自: https://flaviocopes.com/homebrew-install-older-version/

homebrew安装包在哪

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值