This article helps you install AzCopy by using popular Linux package managers (dnf, apt, zypper). When you install AzCopy, you make it available system-wide and can easily keep it updated through your regular system maintenance routines.
For more detailed guidance on installing these packages, see Linux Software Repository for Microsoft Products.
Download the repository configuration package.
curl -sSL -O https://packages.microsoft.com/config/<distribution>/<version>/packages-microsoft-prod.rpm
Replace the <distribution> and <version> placeholders in this command with the Linux distribution and version that you're running on your machine. See packages.microsoft.com to find the list of supported Linux distributions and versions.
Use the cat /etc/os-release command to get the Linux distribution and version running on your machine. For example, if Ubuntu and version 20.04 appears in the output of that command, then open the packages.microsoft.com page, select ubuntu, and then verify that 20.04 appears in the list. Then, use that distribution and version in your comment.
curl -sSL -O https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.rpm
Install the repository configuration package.
sudo rpm -i packages-microsoft-prod.rpm
Delete the repository configuration package after you install it.
rm packages-microsoft-prod.rpm
Update the package index files.
sudo dnf update
Install AzCopy.
sudo dnf install azcopy
Download the repository configuration package.
curl -sSL -O https://packages.microsoft.com/config/<distribution>/<version>/packages-microsoft-prod.rpm
Replace the <distribution> and <version> placeholders in this command with the Linux distribution and version that you're running on your machine. See packages.microsoft.com to find the list of supported Linux distributions and versions.
Use the cat /etc/os-release command to get the Linux distribution and version running on your machine. For example, if Ubuntu and version 20.04 appears in the output of that command, then open the packages.microsoft.com page, select ubuntu, and then verify that 20.04 appears in the list. Then, use that distribution and version in your comment.
curl -sSL -O https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.rpm
Install the repository configuration package.
sudo rpm -i packages-microsoft-prod.rpm
Delete the repository configuration package after you install it.
rm packages-microsoft-prod.rpm
Update the package index files.
sudo zypper --gpg-auto-import-keys refresh
Install AzCopy.
sudo zypper install -y azcopy
Download the repository configuration package.
curl -sSL -O https://packages.microsoft.com/config/<distribution>/<version>/packages-microsoft-prod.deb
Replace the <distribution> and <version> placeholders in this command with the Linux distribution and version that you're running on your machine. See packages.microsoft.com to find the list of supported Linux distributions and versions.
Use the cat /etc/os-release command to get the Linux distribution and version running on your machine. For example, if Ubuntu and version 20.04 appears in the output of that command, then open the packages.microsoft.com page, select ubuntu, and then verify that 20.04 appears in the list. Then, use that distribution and version in your comment.
curl -sSL -O https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb
Install the repository configuration package.
sudo dpkg -i packages-microsoft-prod.deb
Delete the repository configuration package after you install it.
rm packages-microsoft-prod.deb
Update the package index files.
sudo apt-get update
Install AzCopy.
sudo apt-get install azcopy
Install AzCopy.
sudo tdnf install azcopy
Next steps
If you have questions, issues, or general feedback, submit them on GitHub.