Last active
          June 6, 2018 12:17 
        
      - 
      
- 
        Save LeeiFrankJaw/d0ec231120a5697744c55f0674c227f7 to your computer and use it in GitHub Desktop. 
    Install SQL Server on Ubuntu 16.04.4 LTS
  
        
  
    
      This file contains hidden or 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
    
  
  
    
  | #!/usr/bin/env bash | |
| sudo tee /etc/apt/sources.list.d/sql-server-xenial.list <<EOF | |
| deb [arch=amd64] https://packages.microsoft.com/ubuntu/16.04/mssql-server-2017 xenial main | |
| EOF | |
| sudo tee /etc/apt/sources.list.d/microsoft-prod.list <<EOF | |
| deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial main | |
| EOF | |
| wget -O - https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add - | |
| # Though I personally prefer the following if dirmngr is properly | |
| # configured. | |
| # sudo apt-key adv --recv-keys BE1229CF | |
| sudo apt update | |
| sudo apt install mssql-server | |
| sudo /opt/mssql/bin/mssql-conf setup | |
| sudo apt install mssql-tools unixodbc-dev | |
| echo 'PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.profile | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment