How To Install SQL Server On Linux (Ubuntu and CenOS - RHEL)
How To Install SQL Server On Linux (Ubuntu and CenOS - RHEL)
2. Once prompted, enter the password for the sudo user. If the process is successful, the output
reads OK.
In the command above, [version] is the version of Ubuntu you are installing SQL Server on. In
this example, we are using Ubuntu 20.04:
https://phoenixnap.com/kb/sql-server-linux 1/6
5/12/21 19:54 How to Install SQL Server on Linux {Ubuntu and CenOS/RHEL}
The installation process starts by building a dependency tree of packages that it needs to install
before SQL Server:
The installation then proceeds to download, unpack, and set up the necessary packages:
2. First, the configuration requires you to pick from a list of available editions of SQL Server. We
are using the Developer edition (number 2):
https://phoenixnap.com/kb/sql-server-linux 2/6
5/12/21 19:54 How to Install SQL Server on Linux {Ubuntu and CenOS/RHEL}
https://phoenixnap.com/kb/sql-server-linux 3/6
5/12/21 19:54 How to Install SQL Server on Linux {Ubuntu and CenOS/RHEL}
[version] is the version of CentOS you are installing SQL Server on. In this example, we are
using CentOS 7:
https://phoenixnap.com/kb/sql-server-linux 4/6
5/12/21 19:54 How to Install SQL Server on Linux {Ubuntu and CenOS/RHEL}
The installation starts by resolving dependencies before downloading and installing all the required
packages:
2. The configuration process prompts you to choose an SQL Server edition, accept the license
terms, and set a server administrator password.
https://phoenixnap.com/kb/sql-server-linux 5/6
5/12/21 19:54 How to Install SQL Server on Linux {Ubuntu and CenOS/RHEL}
source ~/.bashrc
sqlcmd -S localhost -U SA
https://phoenixnap.com/kb/sql-server-linux 6/6