| title | Install SQL Server on Red Hat Enterprise Linux - SQL Server vNext CTP1 | Microsoft Docs |
|---|---|
| description | Describes how to install SQL Server vNext CTP1 on Red Hat Enterprise Linux 7.2. |
| author | rothja |
| ms.author | jroth |
| manager | jhubbard |
| ms.date | 11/15/2016 |
| ms.topic | article |
| ms.prod | sql-linux |
| ms.technology | database-engine |
| ms.assetid | eff8e226-185f-46d4-a3e3-e18b7a439e63 |
The following steps install the command-line tools, Microsoft ODBC drivers, and their dependencies. The mssql-tools package contains:
- sqlcmd: Command-line query utility.
- bcp: Bulk import-export utility.
Install the tools for your platform.
-
Enter superuser mode.
sudo su -
Download the Microsoft Red Hat repository configuration file.
curl https://packages.microsoft.com/config/rhel/7/prod.repo > /etc/yum.repos.d/msprod.repo -
Exit superuser mode.
exit -
Run the following commands to install mssql-tools.
sudo yum install mssql-tools
-
Enter superuser mode.
sudo su
-
Import the public repository GPG keys:
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - -
Register the Microsoft Ubuntu repository:
curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list > /etc/apt/sources.list.d/msprod.list -
Exit superuser mode:
exit -
Update the sources list and run the installation command:
sudo apt-get update sudo apt-get install mssql-tools
After installation, connect to the SQL Server instance to create and manage databases. To get started, see Connect and query SQL Server on Linux.