3

I am using this command to install app in macOS Monterey(the apple M1 pro chip), but facing a problem like this:

➜  ~ brew install --cask dbeaver-community
==> Downloading https://dbeaver.io/files/21.3.2/dbeaver-ce-21.3.2-macos-aarch64.dmg
Already downloaded: /Users/xiaoqiangjiang/Library/Caches/Homebrew/downloads/c4fed662e860fd6ca0099f59da082b651e219af2b3369c1f85363dbc7469d1f2--dbeaver-ce-21.3.2-macos-aarch64.dmg
==> Installing Cask dbeaver-community
==> Purging files for version 21.3.2 of Cask dbeaver-community
Error: It seems there is already an App at '/Applications/DBeaver.app'.

is it possible to override the old app using homebrew but keep the old app config?

1
  • 1
    sudo rm -rf /Applications/DBeaver.app should solve this.
    – nohillside
    Jan 23 at 16:23

1 Answer 1

3

using this command fix it:

➜  ~ brew install --cask dbeaver-community --force
==> Downloading https://dbeaver.io/files/21.3.2/dbeaver-ce-21.3.2-macos-aarch64.dmg
Already downloaded: /Users/xiaoqiangjiang/Library/Caches/Homebrew/downloads/c4fed662e860fd6ca0099f59da082b651e219af2b3369c1f85363dbc7469d1f2--dbeaver-ce-21.3.2-macos-aarch64.dmg
==> Installing Cask dbeaver-community
Warning: It seems there is already an App at '/Applications/DBeaver.app'; overwriting.
==> Removing App '/Applications/DBeaver.app'
==> Moving App 'DBeaver.app' to '/Applications/DBeaver.app'
🍺  dbeaver-community was successfully installed!
2
  • --force doesn't work for me and it is still failing with error that this or that binary file already exists. I kept deleting them but there are many of them. --overwrite doesn't work with --cask
    – xbmono
    Mar 31 at 2:14
  • Works, but less than ideal. It forcibly downloads and installs the package every time even of the latest version from the cask is already installed. Ideally --overwrite would work with --cask but these options are not compatible with each other.
    – user24601
    Apr 16 at 14:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .