gpt4 book ai didi

Homebrew 软件 - 如何安装旧版本

转载 作者:行者123 更新时间:2023-12-03 10:33:37 32 4
gpt4 key购买 nike

我正在尝试使用旧版本(例如:1.4.5)安装 memcached,但我不知道该怎么做。
brew install memcached安装最新的。

我也试过 brew install memecached1.4.5但它没有用。

最佳答案

通常,您可以检查是否有多个版本可用,您可以使用@ 指定版本。例如brew 安装包@2.8

$ brew info memcached

memcached: stable 1.4.24
High performance, distributed memory object caching system
https://memcached.org/
Conflicts with:
mysql-cluster (because both install `bin/memcached`)
Not installed
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/memcached.rb
...

如果没有你想要的版本,你可以去 repo,并检查历史
cd "$(brew --repo homebrew/core)"
git log master -- Formula/memcached.rb

然后你可以找到你正在寻找的提交
commit 5ec463decefeaab3d1825b923ad2dbee73ffc6dc
Author: Adam Vandenberg <flangy@gmail.com>
Date: Fri Apr 9 21:19:48 2010 -0700

Update memcached to 1.4.5

checkout 该版本并安装:
cd "$(brew --repo homebrew/core)" && git checkout 5ec463decefeaab3d1825b923ad2dbee73ffc6dc
HOMEBREW_NO_AUTO_UPDATE=1 brew install memcached

安装版本后,您可以使用以下命令将 brew 带到其最新版本:
git checkout master

而且,就是这样!

关于 Homebrew 软件 - 如何安装旧版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39187812/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com