gpt4 book ai didi

elasticsearch - 升级 brew 导致卸载的 elasticsearch 包重新安装

转载 作者:行者123 更新时间:2023-12-04 05:49:07 24 4
gpt4 key购买 nike

问题

我想从 elasticsearch 2.4.4 切换到 elasticsearch 5.1.2。但是,当我尝试使用 brew 卸载软件包时,它总是会在我运行 brew upgrade 时重新安装。

系统

Mac OS X El Capitan 10.11.6

例子

我运行这个命令:brew uninstall elasticsearch@2.4

我得到这些结果:Uninstalling/usr/local/Cellar/elasticsearch@2.4/2.4.4...(59 个文件,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

最佳答案

进一步分析

运行 brew list --versions 显示我仍然安装了 elasticsearch24 2.4.2,这是导致问题的实际包。

因此,我不得不运行 brew uninstall elasticsearch24 的卸载命令,它删除了最后一个包。

我跟进了 brew cleanup -s 以清除所有缓存,一切似乎都在工作。

关于elasticsearch - 升级 brew 导致卸载的 elasticsearch 包重新安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41886250/

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