Skip to content

Instantly share code, notes, and snippets.

@Taragolis
Last active May 22, 2017 13:17
Show Gist options
  • Save Taragolis/6fd01fabab07babdddbdf2f1f599392f to your computer and use it in GitHub Desktop.
Save Taragolis/6fd01fabab07babdddbdf2f1f599392f to your computer and use it in GitHub Desktop.
dbeaver ubuntu install script
#!/bin/sh
#
# Copyright 2017 Andrey Anshin
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# You can run this script directly from github as root like this:
# sudo sh -c "$(wget https://gist.githubusercontent.com/Taragolis/6fd01fabab07babdddbdf2f1f599392f/raw/1e46a0bd98e5b1e33805ec924dd38aa0e218401a/dbeaver-ubuntu-installer.sh -qO -)"
#
echo
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root" 1>&2
exit 1
fi
echo "Download DBeaver latest version"
wget -P /tmp http://dbeaver.jkiss.org/files/dbeaver-ce_latest_amd64.deb
echo "Update APT index cache"
apt-get update
echo "Trying install DBeaver"
dpkg -i /tmp/dbeaver-ce_latest_amd64.deb
echo "Trying to fix broken dependence"
apt-get install -f -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment