You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/linux/sql-server-linux-setup.md
+37-5Lines changed: 37 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,6 +91,18 @@ To rollback or downgrade SQL Server to a previous release, use the following ste
91
91
> [!IMPORTANT]
92
92
> Downgrade is only supported between RTM, RC2, and RC1 at this time.
93
93
94
+
## <aid="versioncheck"></a> Check installed SQL Server version
95
+
96
+
To verify your current version and edition of SQL Server on Linux, use the following procedure:
97
+
98
+
1. If not already installed, install the [SQL Server command-line tools](sql-server-linux-setup-tools.md).
99
+
100
+
1. Use **sqlcmd** to run a Transact-SQL command that displays your SQL Server version and edition.
101
+
102
+
```bash
103
+
sqlcmd -S localhost -U SA -Q 'select @@VERSION'
104
+
```
105
+
94
106
## <aid="uninstall"></a> Uninstall SQL Server
95
107
96
108
To remove the **mssql-server** package on Linux, use one of the following commands based on your platform:
@@ -121,6 +133,22 @@ There are two main types of repositories for each distribution:
121
133
122
134
Each CU and GDR release contains the full SQL Server package and all previous updates for that repository. Updating from a GDR release to a CU release is supported by changing your configured repository for SQL Server. You can also [downgrade](#rollback) to any release within your major version (ex: 2017). Updating from a CU release to a GDR release is not supported.
123
135
136
+
### Check your configured repository
137
+
138
+
If you want to verify what repository is configured, use the following platform-dependent techniques.
139
+
140
+
| Platform | Procedure |
141
+
|-----|-----|
142
+
| RHEL | 1. View the files in the **/etc/yum.repos.d** directory: `sudo ls /etc/yum.repos.d`<br/>2. Look for a file that configures the SQL Server directory, such as **mssql-server.repo**.<br/>3. Print out the contents of the file: `sudo cat /etc/yum.repos.d/mssql-server.repo`<br/>4. The **name** property is the configured repository.|
143
+
| SLES | 1. Run the following command: `sudo zypper info mssql-server`<br/>2. The **Repository** property is the configured repository. |
144
+
| Ubuntu | 1. Run the following command: `sudo cat /etc/apt/sources.list`<br/>2. Examine the package URL for mssql-server. |
145
+
146
+
The end of the repository URL confirms the repository type:
147
+
148
+
-**mssql-server**: preview repository.
149
+
-**mssql-server-2017**: CU repository.
150
+
-**mssql-server-2017-gdr**: GDR repository.
151
+
124
152
### Change the source repository
125
153
126
154
To configure the CU or GDR repositories, use the following steps:
@@ -130,11 +158,15 @@ To configure the CU or GDR repositories, use the following steps:
130
158
131
159
1. If necessary, remove the previously configured repository.
0 commit comments