我想从elasticsearch 5.1.2
切换到elasticsearch 2.4.4
。但是,当我尝试使用brew卸载软件包时,它会在我运行brew升级时重新安装。
Mac OS X El Capitan 10.11.6
我运行此命令:brew uninstall elasticsearch@2.4
我得到了这些结果:Uninstalling /usr/local/Cellar/elasticsearch@2.4/2.4.4... (59 files, 29.1M)
但是当我跑步时:brew update && brew upgrade
我明白了:
Already up-to-date.
Already up-to-date.
==> Upgrading 1 outdated package, with result:
elasticsearch@2.4 2.4.4
==> Upgrading elasticsearch@2.4
==> Using the sandbox
==> Downloading https://download.elasticsearch.org/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/2.4.4/elasticsearch-2.4.4.tar.gz
Already downloaded: /Users/wrburgess/Library/Caches/Homebrew/elasticsearch@2.4-2.4.4.tar.gz
==> Caveats
Data: /usr/local/var/elasticsearch/elasticsearch_wrburgess/
Logs: /usr/local/var/log/elasticsearch/elasticsearch_wrburgess.log
Plugins: /usr/local/opt/elasticsearch@2.4/libexec/plugins/
Config: /usr/local/etc/elasticsearch/
plugin script: /usr/local/opt/elasticsearch@2.4/libexec/bin/plugin
To have launchd start elasticsearch@2.4 now and restart at login:
brew services start elasticsearch@2.4
Or, if you don't want/need a background service you can just run:
elasticsearch
==> Summary
/usr/local/Cellar/elasticsearch@2.4/2.4.4: 59 files, 29.1M, built in 3 seconds
我想将elasticsearch 2.4.4从我的系统中完全删除并切换到5.1.2
答案 0 :(得分:2)
运行brew list --versions
显示我仍然安装了elasticsearch24 2.4.2
,这是造成问题的实际程序包。
因此,我必须运行brew uninstall elasticsearch24
的卸载命令,该命令删除了最后一个包。
我跟进brew cleanup -s
以清除任何缓存,一切似乎都在起作用。