Edit

Share via


Install AzCopy on Linux by using a package manager

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.

  1. 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
    
  2. Install the repository configuration package.

    sudo rpm -i packages-microsoft-prod.rpm
    
  3. Delete the repository configuration package after you install it.

    rm packages-microsoft-prod.rpm
    
  4. Update the package index files.

    sudo dnf update
    
  5. Install AzCopy.

    sudo dnf install azcopy
    

Next steps

If you have questions, issues, or general feedback, submit them on GitHub.