

In some cases, you must manually locate and install these dependencies. Resolve missing dependencies: You might have missing dependencies at this point. Replace with the correct version: sudo yum localinstall msodbcsql-.rpm If you get any dependency errors, ignore them until the next step. Install the and packages: Install the mssql-tools and msodbc packages. If you used a different machine to download the packages, one way to move the packages to your Linux machine is with the scp command. Move the downloaded packages to your Linux machine. For Red Hat, the msodbcsql package is located at. The msodbcsql package also has a dependency on unixODBC-devel. Īlso locate and copy the msodbcsql package, which is a dependency. įirst, locate and copy the mssql-tools package for your Linux distribution. These packages are located in the Microsoft repository. If your Linux machine doesn't have access to the online repositories used in the previous sections, you can download the package files directly. An example final command as part of installation on an Ubuntu-based image is: sudo ACCEPT_EULA=Y apt-get install mssql-tools unixodbc-dev

If you are creating a container with the SQL Server command-line tools, it is recommended to add ACCEPT_EULA=Y to the installation command to silently accept the EULA and not interrupt image creation. If you attach to a running container with an interactive bash shell, you can run the tools locally. If you run SQL Server in a Docker container, the SQL Server command-line tools are already included in the SQL Server Linux container image.

#HOMEBREW_NO_ENV_FILTERING=1 ACCEPT_EULA=y brew install mssql-tools To install the tools for Mac El Capitan and Sierra, use the following commands: # brew untap microsoft/mssql-preview if you installed the preview version Install Homebrew if you don't have it already: For more information, see the announcement. To update to the latest version of mssql-tools run the following commands: sudo apt-get updateĪ preview of sqlcmd and bcp is now available on macOS. sudo zypper install mssql-tools unixODBC-devel

Install mssql-tools with the unixODBC developer package. Sudo zypper -gpg-auto-import-keys refresh Use the following steps to install the mssql-tools on SUSE Linux Enterprise Server.Īdd the Microsoft SQL Server repository to Zypper. To make sqlcmd/bcp accessible from the bash shell for interactive/non-login sessions, modify the PATH in the ~/.bashrc file with the following command: echo 'export PATH="$PATH:/opt/mssql-tools/bin"' > ~/.bashrc To make sqlcmd/bcp accessible from the bash shell for login sessions, modify your PATH in the ~/.bash_profile file with the following command: echo 'export PATH="$PATH:/opt/mssql-tools/bin"' > ~/.bash_profile Optional: Add /opt/mssql-tools/bin/ to your PATH environment variable in a bash shell. To update to the latest version of mssql-tools run the following commands: sudo yum check-update
