SQL Server on Linux - What's installed?

Software… Are you the curious type like me who needs to know what’s been installed and where it is located on your system!

Exploring the public preview of SQL Server vNext CTP1.1, and installing the following necessary packages mssql-server, mssql-tools, and msodbcsql for running and using SQL Server on Linux. This post is about these packages, finding out what files are installed and where, but before we jump in some minor housekeeping stuff…

What is a Linux package?

In Linux distributions, a package refers to a compressed file archive containing all of the files that come with a particular application. The files are usually stored in the package according to their relative installation paths on your system. Most packages also contain installation instructions for the OS, as well as a list of any other packages that are dependencies, prerequisites required for installation.

Common types of Linux packages include .deb, .rpm, and .tgz. Since Linux packages do not usually contain the dependencies necessary to install them, many Linux distributions use package managers that automatically read dependencies files and download the packages needed before proceeding with the installation. Some examples of package managers are APT, YUM, and Pacman.

What is Dpkg?

Dpkg or the Debian Package Manager is a package manager for Debian-based systems like Ubuntu, Linux Mint, and openSUSE. It can install, remove, build, and provide information about .deb packages, but unlike other package management systems, it cannot automatically download and install packages or their dependencies.

What is RPM?
RPM or the Red Hat Package Manager is a package management utility for Red Hat based systems like RHEL, CentOS and Fedora. The tool allows system administrators and users to install, update, uninstall, query, verify and manage system software packages in Unix/Linux operating systems.

Now we already know which packages we have installed for SQL Server on Linux, but if you need to confirm and list any installed package on your system you can issue the following command:

List the installed package that contains the “sql” keyword – Debian package (i.e. Ubuntu)
dpkg -l | grep sql

List the installed package that contains the “sql” keyword – RPM package (i.e. CentOS)
yum list installed | grep sql

Output on Debian distribution:

The following are the commands to execute for both Debian and RPM Linux distributions in order to list its content and identify where it was installed on your system.

mssql-server package

dpkg -L mssql-server

rpm -ql mssql-server

Output from Debian package:


mssql-tools package

dpkg -L mssql-tools

rpm -ql mssql-tools

Output from Debian package:


msodbcsql package

dpkg -L msodbcsql

rpm -ql msodbcsql

Output from Debian package:



comments powered by Disqus