How to install dbeaver (similar to SQL Server Management Studio) in Ubuntu 14.04 LTS 64-bit using a bash script

Posted: 2015/01/28 in Ubuntu
Tags: , , , ,
MACHINE_TYPE=`uname -m`
cd /tmp
rm *.deb
rm index.html
if [ ${MACHINE_TYPE} == 'x86_64' ]; then
 # 64-bit stuff here
wget http://dbeaver.jkiss.org/download/
FILENAME=`cat index.html |grep amd64|cut -d "\"" -f2| cut -d"/" -f3`
wget dbeaver.jkiss.org/files/`echo $FILENAME`
sudo dpkg -i dbeaver*.deb
sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes -f install
else
 # 32-bit stuff here
wget http://dbeaver.jkiss.org/download/
FILENAME=`cat index.html |grep i386|cut -d "\"" -f2| cut -d"/" -f3`
wget dbeaver.jkiss.org/files/`echo $FILENAME`
sudo dpkg -i dbeaver*.deb
sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes -f install
fi
# run following command to start dbeaver:
/usr/share/dbeaver/dbeaver
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s