Skip to content

Latest commit

 

History

History
102 lines (70 loc) · 2.08 KB

File metadata and controls

102 lines (70 loc) · 2.08 KB
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

Install SQL Server tools on Linux

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.

  1. Enter superuser mode.

    sudo su
    
  2. Download the Microsoft Red Hat repository configuration file.

    curl https://packages.microsoft.com/config/rhel/7/prod.repo > /etc/yum.repos.d/msprod.repo
  3. Exit superuser mode.

    exit
  4. Run the following commands to install mssql-tools.

    sudo yum install mssql-tools
  1. Enter superuser mode.

    sudo su
  2. Import the public repository GPG keys:

    curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
  3. Register the Microsoft Ubuntu repository:

    curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list > /etc/apt/sources.list.d/msprod.list
  4. Exit superuser mode:

    exit
  5. Update the sources list and run the installation command:

    sudo apt-get update 
    sudo apt-get install mssql-tools

Next steps

After installation, connect to the SQL Server instance to create and manage databases. To get started, see Connect and query SQL Server on Linux.