| author | rwestMSFT | |
|---|---|---|
| ms.author | randolphwest | |
| ms.date | 06/16/2025 | |
| ms.service | sql | |
| ms.topic | include | |
| ms.custom |
|
Use the following steps to install the mssql-tools18 on SUSE Linux Enterprise Server.
-
Import the Microsoft package signing key.
curl -O https://packages.microsoft.com/keys/microsoft.asc sudo rpm --import microsoft.asc
-
Add the [!INCLUDE ssnoversion-md] repository to Zypper.
-
For SLES 15, use the following command:
sudo zypper ar https://packages.microsoft.com/config/sles/15/prod.repo
-
For SLES 12, use the following command:
sudo zypper ar https://packages.microsoft.com/config/sles/12/prod.repo
-
-
Install mssql-tools18 with the unixODBC developer package.
- For SLES 15, use the following command:
sudo zypper install -y mssql-tools18 unixODBC-devel glibc-locale-base
- For SLES 12, use the following command:
sudo zypper install -y mssql-tools18 unixODBC-devel
To update to the latest version of mssql-tools18, run the following commands:
sudo zypper refresh sudo zypper update mssql-tools18
-
Optional: Add
/opt/mssql-tools18/bin/to yourPATHenvironment variable in a bash shell.To make sqlcmd and bcp accessible from the bash shell for login sessions, modify your
PATHin the~/.bash_profilefile with the following command:echo 'export PATH="$PATH:/opt/mssql-tools18/bin"' >> ~/.bash_profile source ~/.bash_profile
To make sqlcmd or bcp accessible from the bash shell for interactive/non-login sessions, modify the
PATHin the~/.bashrcfile with the following command:echo 'export PATH="$PATH:/opt/mssql-tools18/bin"' >> ~/.bashrc source ~/.bashrc