按照来自keepassxc download instruction的命令,使用cli中的命令brew cask upgrade keepassxc
将keepassxc从2.4.1升级到2.4.3,但无法正常工作
~ $ brew cask upgrade keepassxc
No Casks to upgrade
~ $
使用brew cask edit keepassxc
编辑公式,并更新版本和shasum。然后运行brew cask upgrade keepassxc
进行升级。
~ $ brew cask edit keepassxc Editing
==> /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks/keepassxc.rb
==> ~ $ brew cask upgrade keepassxc
==> Upgrading 1 outdated package: keepassxc 2.4.1 -> 2.4.3
==> Upgrading keepassxc
==> Satisfying dependencies
==> Downloading https://github.com/keepassxreboot/keepassxc/releases/download/2.4.3/KeePassXC-2.4.3.dmg
==> Downloading from https://github-production-release-asset-2e65be.s3.amazonaws.com/52729242/3d7cbe80-8cb7-11e9-914d-7e553dcbcb67?X-Amz-Algorithm=AWS4-HMAC-SHA25
######################################################################## 100.0%
==> Verifying SHA-256 checksum for Cask 'keepassxc'.
==> Backing App 'KeePassXC.app' up to '/usr/local/Caskroom/keepassxc/2.4.1/KeePassXC.app'.
==> Removing App '/Applications/KeePassXC.app'.
==> Unlinking Binary '/usr/local/bin/keepassxc-cli'. hdiutil attach -plist -nobrowse -readonly -noidme -mountrandom /var/folders/69/tgssj4gj3pd_x0fph6j1zf7c0000gx/T/d20190717-4167-1fxzey3 /Users/${USER}/Library/Caches/Homebrew/downloads/b1feff6ffd0cfd1e01770133192c9909fd81c92aa5b07ed67b1aeb08d3316e91--KeePassXC-2.4.3.dmg mkbom -s -i /var/folders/69/tgssj4gj3pd_x0fph6j1zf7c0000gx/T/20190717-4167-1b57m3w.list
-- /var/folders/69/tgssj4gj3pd_x0fph6j1zf7c0000gx/T/20190717-4167-1papfqh.bom ditto --bom /var/folders/69/tgssj4gj3pd_x0fph6j1zf7c0000gx/T/20190717-4167-1papfqh.bom
-- /private/var/folders/69/tgssj4gj3pd_x0fph6j1zf7c0000gx/T/d20190717-4167-1fxzey3/dmg.1CS2gQ /var/folders/69/tgssj4gj3pd_x0fph6j1zf7c0000gx/T/d20190717-4167-kxxch7 diskutil eject /private/var/folders/69/tgssj4gj3pd_x0fph6j1zf7c0000gx/T/d20190717-4167-1fxzey3/dmg.1CS2gQ cp -pR /var/folders/69/tgssj4gj3pd_x0fph6j1zf7c0000gx/T/d20190717-4167-kxxch7/KeePassXC.app/. /usr/local/Caskroom/keepassxc/2.4.3/KeePassXC.app chmod -Rf +w /var/folders/69/tgssj4gj3pd_x0fph6j1zf7c0000gx/T/d20190717-4167-kxxch7
==> Moving App 'KeePassXC.app' to '/Applications/KeePassXC.app'.
==> Linking Binary 'keepassxc-cli' to '/usr/local/bin/keepassxc-cli'.
==> Purging files for version 2.4.1 of Cask keepassxc ? keepassxc was successfully upgraded! ~ $
应该有一种正确/简便的方法。您如何升级keepassxc?