To install DBeaver CE (community edition) on a client machine using apt, we can add their apt repository to our apt source, but it is not recommended to add 3rd party keys to the global apt keyring. That’s why the whole apt-key command is actually deprecated.
For more background info, see https://wiki.debian.org/DebianRepository/UseThirdParty
So let’s download the DBeaver key and prepare it for safe use:
curl https://dbeaver.io/debs/dbeaver.gpg.key | gpg --dearmor > dbeaver.gpg
sudo mkdir -p /usr/local/share/keyrings
sudo mv dbeaver.gpg /usr/local/share/keyrings
sudo chown root.root /usr/local/share/keyrings/dbeaver.gpg
sudo chmod 400 /usr/local/share/keyrings/dbeaver.gpg
Then add the DBeaver repo to your apt sources with the proper signed-by annotation:
echo "deb [signed-by=/usr/local/share/keyrings/dbeaver.gpg] https://dbeaver.io/debs/dbeaver-ce /" | sudo tee /etc/apt/sources.list.d/dbeaver.list
And finally we can install DBeaver CE:
sudo apt update
sudo apt install dbeaver-ce
If all went well, you should now be able to run DBeaver from the “Development” section of your Applications menu.
