curl -o /etc//packages-microsoft-com-prod.repo For example, centos/8 can be used in an environment running CentOS 7.
If the version of your OS doesn't directly correspond to one of those options, you can likely successfully use a repository configuration file from a version. rpm -import ĭownload the repository configuration file, where the centos/8 segment may be centos/8, fedora/32, opensuse/42.3, rhel/8, or sles/15. curl | sudo tee /etc/apt//microsoft.ascĪdd the Microsoft repository, where the ubuntu/20.04 segment may be debian/11, ubuntu/20.04, or ubuntu/22.04. brew install sqlcmdĭownload the -darwin-圆4.zip asset from the latest release of sqlcmd (Go) from the GitHub code repository.Įxtract the sqlcmd file from the downloaded zip folder. choco install sqlcmdĭownload the corresponding -windows-圆4.zip or -windows-arm.zip asset from the latest release of sqlcmd (Go) from the GitHub code repository.Įxtract the sqlcmd.exe file from the downloaded zip folder. Run the following command to install sqlcmd (Go). Install Chocolatey if you don't already have it. Install the Windows Package Manager Client if you don't already have it.