|
1 | 1 | --- |
2 | 2 | title: Install the Microsoft ODBC driver for SQL Server (Linux) |
3 | 3 | description: "Learn how to install the Microsoft ODBC Driver for SQL Server on Linux clients to enable database connectivity." |
4 | | -ms.date: 07/31/2020 |
| 4 | +ms.date: 01/29/2021 |
5 | 5 | ms.prod: sql |
6 | 6 | ms.prod_service: connectivity |
7 | 7 | ms.technology: connectivity |
@@ -36,22 +36,22 @@ The following sections explain how to install the Microsoft ODBC driver 17 from |
36 | 36 |
|
37 | 37 | ```bash |
38 | 38 | #Download the desired package(s) |
39 | | -curl -O https://download.microsoft.com/download/e/4/e/e4e67866-dffd-428c-aac7-8d28ddafb39b/msodbcsql17_17.6.1.1-1_amd64.apk |
40 | | -curl -O https://download.microsoft.com/download/e/4/e/e4e67866-dffd-428c-aac7-8d28ddafb39b/mssql-tools_17.6.1.1-1_amd64.apk |
| 39 | +curl -O https://download.microsoft.com/download/e/4/e/e4e67866-dffd-428c-aac7-8d28ddafb39b/msodbcsql17_17.7.1.1-1_amd64.apk |
| 40 | +curl -O https://download.microsoft.com/download/e/4/e/e4e67866-dffd-428c-aac7-8d28ddafb39b/mssql-tools_17.7.1.1-1_amd64.apk |
41 | 41 |
|
42 | 42 |
|
43 | 43 | #(Optional) Verify signature, if 'gpg' is missing install it using 'apk add gnupg': |
44 | | -curl -O https://download.microsoft.com/download/e/4/e/e4e67866-dffd-428c-aac7-8d28ddafb39b/msodbcsql17_17.6.1.1-1_amd64.sig |
45 | | -curl -O https://download.microsoft.com/download/e/4/e/e4e67866-dffd-428c-aac7-8d28ddafb39b/mssql-tools_17.6.1.1-1_amd64.sig |
| 44 | +curl -O https://download.microsoft.com/download/e/4/e/e4e67866-dffd-428c-aac7-8d28ddafb39b/msodbcsql17_17.7.1.1-1_amd64.sig |
| 45 | +curl -O https://download.microsoft.com/download/e/4/e/e4e67866-dffd-428c-aac7-8d28ddafb39b/mssql-tools_17.7.1.1-1_amd64.sig |
46 | 46 |
|
47 | 47 | curl https://packages.microsoft.com/keys/microsoft.asc | gpg --import - |
48 | | -gpg --verify msodbcsql17_17.6.1.1-1_amd64.sig msodbcsql17_17.6.1.1-1_amd64.apk |
49 | | -gpg --verify mssql-tools_17.6.1.1-1_amd64.sig mssql-tools_17.6.1.1-1_amd64.apk |
| 48 | +gpg --verify msodbcsql17_17.7.1.1-1_amd64.sig msodbcsql17_17.7.1.1-1_amd64.apk |
| 49 | +gpg --verify mssql-tools_17.7.1.1-1_amd64.sig mssql-tools_17.7.1.1-1_amd64.apk |
50 | 50 |
|
51 | 51 |
|
52 | 52 | #Install the package(s) |
53 | | -sudo apk add --allow-untrusted msodbcsql17_17.6.1.1-1_amd64.apk |
54 | | -sudo apk add --allow-untrusted mssql-tools_17.6.1.1-1_amd64.apk |
| 53 | +sudo apk add --allow-untrusted msodbcsql17_17.7.1.1-1_amd64.apk |
| 54 | +sudo apk add --allow-untrusted mssql-tools_17.7.1.1-1_amd64.apk |
55 | 55 | ``` |
56 | 56 |
|
57 | 57 | > [!NOTE] |
@@ -103,7 +103,7 @@ sudo su |
103 | 103 | #RedHat Enterprise Server 6 |
104 | 104 | curl https://packages.microsoft.com/config/rhel/6/prod.repo > /etc/yum.repos.d/mssql-release.repo |
105 | 105 |
|
106 | | -#RedHat Enterprise Server 7 |
| 106 | +#RedHat Enterprise Server 7 and Oracle Linux 7 |
107 | 107 | curl https://packages.microsoft.com/config/rhel/7/prod.repo > /etc/yum.repos.d/mssql-release.repo |
108 | 108 |
|
109 | 109 | #RedHat Enterprise Server 8 and Oracle Linux 8 |
@@ -172,6 +172,9 @@ curl https://packages.microsoft.com/config/ubuntu/18.04/prod.list > /etc/apt/sou |
172 | 172 | #Ubuntu 20.04 |
173 | 173 | curl https://packages.microsoft.com/config/ubuntu/20.04/prod.list > /etc/apt/sources.list.d/mssql-release.list |
174 | 174 |
|
| 175 | +#Ubuntu 20.10 |
| 176 | +curl https://packages.microsoft.com/config/ubuntu/20.10/prod.list > /etc/apt/sources.list.d/mssql-release.list |
| 177 | + |
175 | 178 | exit |
176 | 179 | sudo apt-get update |
177 | 180 | sudo ACCEPT_EULA=Y apt-get install msodbcsql17 |
|
0 commit comments