Skip to content

Instantly share code, notes, and snippets.

@jniltinho
Created September 18, 2017 21:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jniltinho/96bda4fd68094fe93f079fb5867d235e to your computer and use it in GitHub Desktop.
Save jniltinho/96bda4fd68094fe93f079fb5867d235e to your computer and use it in GitHub Desktop.
Install SQL Server on Ubuntu 16.04
#!/bin/bash
## Install SQL Server on Ubuntu 16.04
## https://docs.microsoft.com/pt-br/sql/linux/quickstart-install-connect-ubuntu
## Run as root (sudo su)
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
add-apt-repository "$(curl https://packages.microsoft.com/config/ubuntu/16.04/mssql-server.list)"
add-apt-repository "$(curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list)"
sudo apt-get update
sudo apt-get install -y mssql-server mssql-tools unixodbc-dev
echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> /etc/profile
source /etc/profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment