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安装包在哪