|
| 1 | +--- |
| 2 | +title: Download and install sqlpackage | Microsoft Docs |
| 3 | +description: 'Download and Install sqlpackage for Windows, macOS, or Linux' |
| 4 | +ms.custom: "tools|sos" |
| 5 | +ms.date: "06/18/2018" |
| 6 | +ms.prod: sql |
| 7 | +ms.reviewer: "alayu; sstein" |
| 8 | +ms.suite: "sql" |
| 9 | +ms.prod_service: sql-tools |
| 10 | +ms.component: sos |
| 11 | +ms.tgt_pltfrm: "" |
| 12 | +ms.topic: conceptual |
| 13 | +author: "pensivebrian" |
| 14 | +ms.author: "broneill" |
| 15 | +manager: craigg |
| 16 | +--- |
| 17 | +# Download and install sqlpackage |
| 18 | + |
| 19 | +sqlpackage runs on Windows, macOS, and Linux. |
| 20 | + |
| 21 | +Download and install the latest .NET Framework release and macOS and Linux previews: |
| 22 | + |
| 23 | +|Platform|Download|Release date|Version|Build| |
| 24 | +|:---|:---|:---|:---|:---| |
| 25 | +|Windows|[Installer](https://go.microsoft.com/fwlink/?linkid=873386)|Jan 25, 2018|17.4.1|14.0.3917.1| |
| 26 | +|macOS (preview)|[.zip](https://go.microsoft.com/fwlink/?linkid=873927)|May 9, 2018 |0.0.1|15.0.4057.1| |
| 27 | +|Linux (preview)|[.zip](https://go.microsoft.com/fwlink/?linkid=873926)|May 9, 2018 |0.0.1|15.0.4057.1| |
| 28 | + |
| 29 | +## Get sqlpackage for Windows |
| 30 | + |
| 31 | +This release of sqlpackage includes a standard Windows installer experience, and a .zip: |
| 32 | + |
| 33 | +**Installer** |
| 34 | + |
| 35 | +1. Download and run the [DacFramework.msi installer for Windows](https://go.microsoft.com/fwlink/?linkid=873386). |
| 36 | +2. Open a new Command Prompt window, and run sqlpackage.exe |
| 37 | + - sqlpackage is installed to the ```C:\Program Files\Microsoft SQL Server\140\DAC\bin``` folder |
| 38 | + |
| 39 | +## Get sqlpackage (preview) for macOS |
| 40 | + |
| 41 | +1. Download [sqlpackage for macOS](https://go.microsoft.com/fwlink/?linkid=873927). |
| 42 | +2. To extract the file and launch sqlpackage, open a new Terminal window and type the following commands: |
| 43 | + |
| 44 | + **.zip Installation:** |
| 45 | + ```bash |
| 46 | + mv ~/Downloads/sqlpackage-linux-<version string> ~/sqlpackage |
| 47 | + echo 'export PATH="$PATH:~/sqlpackage"' >> ~/.bash_profile |
| 48 | + source ~/.bash_profile |
| 49 | + sqlpackage |
| 50 | + ``` |
| 51 | + |
| 52 | +## Get sqlpackage (preview) for Linux |
| 53 | + |
| 54 | +1. Download [sqlpackage for Linux](https://go.microsoft.com/fwlink/?linkid=873926) by using one of the installers or the tar.gz archive: |
| 55 | +2. To extract the file and launch sqlpackage, open a new Terminal window and type the following commands: |
| 56 | + |
| 57 | + **.zip Installation:** |
| 58 | + ```bash |
| 59 | + cd ~ |
| 60 | + mkdir sqlpackage |
| 61 | + unzip ~/Downloads/sqlpackage-linux-<version string>.zip ~/sqlpackage |
| 62 | + echo 'export PATH="$PATH:~/sqlpackage"' >> ~/.bashrc |
| 63 | + source ~/.bashrc |
| 64 | + sqlpackage |
| 65 | + ``` |
| 66 | + |
| 67 | + > [!NOTE] |
| 68 | + > On Debian, Redhat, and Ubuntu, you may have missing dependencies. Use the following commands to install these dependencies depending on your version of Linux: |
| 69 | + |
| 70 | + |
| 71 | + **Debian:** |
| 72 | + ```bash |
| 73 | + sudo apt-get install libuwind8 |
| 74 | + ``` |
| 75 | + |
| 76 | + **Redhat:** |
| 77 | + ```bash |
| 78 | + yum install libunwind |
| 79 | + yum install libicu |
| 80 | + ``` |
| 81 | + |
| 82 | + **Ubuntu:** |
| 83 | + ```bash |
| 84 | + sudo apt-get install libunwind8 |
| 85 | + |
| 86 | + # install the libicu library based on the Ubuntu version |
| 87 | + sudo apt-get install libicu52 # for 14.x |
| 88 | + sudo apt-get install libicu55 # for 16.x |
| 89 | + sudo apt-get install libicu57 # for 17.x |
| 90 | + sudo apt-get install libicu60 # for 18.x |
| 91 | + ``` |
| 92 | + |
| 93 | + |
| 94 | +## Uninstall sqlpackage (preview) |
| 95 | + |
| 96 | +If you installed sqlpackage using the Windows installer, then uninstall the same way you remove any Windows application. |
| 97 | + |
| 98 | +If you installed sqlpackage with a .zip or other archive, then simply delete the files. |
| 99 | + |
| 100 | +## Supported Operating Systems |
| 101 | + |
| 102 | +sqlpackage runs on Windows, macOS, and Linux, and is supported on the following platforms: |
| 103 | + |
| 104 | +### Windows |
| 105 | +- Windows 10 |
| 106 | +- Windows 8.1 |
| 107 | +- Windows 8 |
| 108 | +- Windows 7 SP1 |
| 109 | +- Windows Server 2016 |
| 110 | +- Windows Server 2012 R2 |
| 111 | +- Windows Server 2012 |
| 112 | +- Windows Server 2008 R2 |
| 113 | + |
| 114 | +### macOS |
| 115 | +- macOS 10.13 High Sierra |
| 116 | +- macOS 10.12 Sierra |
| 117 | + |
| 118 | +### Linux (x64) |
| 119 | +- Red Hat Enterprise Linux 7.4 |
| 120 | +- Red Hat Enterprise Linux 7.3 |
| 121 | +- SUSE Linux Enterprise Server v12 SP2 |
| 122 | +- Ubuntu 16.04 |
| 123 | + |
| 124 | +## Next Steps |
| 125 | + |
| 126 | +- Learn more about [sqlpackage](sqlpackage.md) |
| 127 | + |
| 128 | +[Microsoft Privacy Statement](https://go.microsoft.com/fwlink/?LinkId=521839) |
0 commit comments