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?
sudo rm -rf /Applications/DBeaver.app
should solve this. – nohillside Jan 23 '22 at 16:23