在macOS上找到brew配方的旧版本,可以通过以下步骤进行:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew log <formula>
<formula>
是你要查找旧版本的配方名称。brew install <formula>@<commit_hash>
<formula>
是配方名称,<commit_hash>
是你复制的提交哈希值。通过上述步骤,你可以在macOS上找到并安装brew配方的旧版本。请注意,这只适用于使用Homebrew管理的软件包。
领取专属 10元无门槛券
手把手带您无忧上云