title | description | author | ms.author | ms.reviewer | ms.date | ms.service | ms.subservice | ms.topic | ms.custom |
---|---|---|---|---|---|---|---|---|---|
Install Azure Data CLI (azdata) with apt |
Learn how to install the Azure Data CLI (azdata) tool with apt. |
MikeRayMSFT |
mikeray |
mihaelab |
04/07/2021 |
sql |
big-data-cluster |
conceptual |
intro-installation, linux-related-content |
Install [!INCLUDE azure-data-cli-azdata] with apt
[!INCLUDEazdata]
For Linux distributions with apt
there is a package for the azdata-cli
. The CLI package has been tested on Linux versions which use apt
:
- Ubuntu 16.04, Ubuntu 18.04, Ubuntu 20.04
[!INCLUDE azdata-package-installation-remove-pip-install]
Important
The Debian package of azdata-cli
depends on the python3
package. On your system, this may be a Python version which predates the requirement of Python 3.6.x. If this poses an issue for you, find a replacement python3
package or follow the manual installation instructions that use pip
.
-
Install dependencies necessary to install
azdata-cli
.sudo apt-get update sudo apt-get install gnupg ca-certificates curl wget software-properties-common apt-transport-https lsb-release -y
-
Import the Microsoft repository key.
curl https://packages.microsoft.com/keys/microsoft.asc | sudo tee /etc/apt/trusted.gpg.d/microsoft.asc
-
Create local repository information.
For Ubuntu 16.04 client run:
sudo add-apt-repository "$(wget -qO- https://packages.microsoft.com/config/ubuntu/16.04/prod.list)"
For Ubuntu 18.04 client run:
sudo add-apt-repository "$(wget -qO- https://packages.microsoft.com/config/ubuntu/18.04/prod.list)"
For Ubuntu 20.04 client run:
sudo add-apt-repository "$(wget -qO- https://packages.microsoft.com/config/ubuntu/20.04/prod.list)"
-
Install
azdata-cli
.sudo apt-get update sudo apt-get install -y azdata-cli
azdata
azdata --version
Update the azdata-cli
with the apt-get update
and apt-get install
commands.
sudo apt-get update && sudo apt-get install --only-upgrade -y azdata-cli
-
Remove the package from your system.
sudo apt-get remove -y azdata-cli
-
Remove the repository information if you do not plan to reinstall
azdata-cli
.sudo rm /etc/apt/sources.list.d/azdata-cli.list
-
Remove the repository key.
sudo rm /etc/apt/trusted.gpg.d/dpgswdist.v1.asc.gpg
-
Remove dependencies no longer required.
sudo apt autoremove
For more information about big data clusters, see [What are [!INCLUDEbig-data-clusters-2019]?](../../big-data-cluster/big-data-cluster-overview.md).