我正在使用自制酒桶来保持我的应用程序生态系统最新。当在家中,旅行中或旅途中维护多台计算机时,这非常好。
但是,当更新某些软件包时(例如Google Chrome),我最终安装了不同的并发版本(操作系统可以看到这些版本):
$ ls / opt / homebrew-cask / Caskroom / google-chrome /最新的稳定频道
升级酒桶时会发生这种情况:
$ ls -l /opt/homebrew-cask/Caskroom/tunnelblick
total 0
drwxr-xr-x 5 foo staff 238 Mar 11 07:42 3.3.0
drwxr-xr-x 5 foo staff 238 May 13 13:53 3.3.2
[13:00:40] foo at bar in ~
$ brew cask install --force tunnelblick
==> Caveats
For security reasons, Tunnelblick must be installed to /Applications and will request to be moved at launch.
==> Downloading https://downloads.sourceforge.net/project/tunnelblick/All%20files/Tunnelblick_3.3.4.dmg
######################################################################## 100.0%
==> It seems there is already an App at '/Applications/Tunnelblick.app'; not linking.
🍺 tunnelblick installed to '/opt/homebrew-cask/Caskroom/tunnelblick/3.3.4' (236 files, 20M)
$ ls -l /opt/homebrew-cask/Caskroom/tunnelblick
total 0
drwxr-xr-x 5 foo staff 238 Mar 11 07:42 3.3.0
drwxr-xr-x 5 foo staff 238 May 13 13:53 3.3.2
drwxr-xr-x 5 foo staff 238 Jun 26 13:01 3.3.4
[13:01:26] foo at bar in ~
我如何只保留最新的?
是的,我尝试过,但不适用于酒桶...
—
meduz 2014年
这显然在@ github.com
—
caskroom
还在寻找答案。我最近的尝试涉及删除所有应用程序并重新安装,这不是很生态。
—
meduz '16
brew cleanup
与brew prune
?