Created
September 18, 2017 21:19
-
-
Save jniltinho/96bda4fd68094fe93f079fb5867d235e to your computer and use it in GitHub Desktop.
Install SQL Server on Ubuntu 16.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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