About this Install Guide

This guide shows you how to install and use the tool with the most common configuration. For advanced options and complete reference information, see the official documentation. Some install guides also include optional next steps to help you explore related workflows or integrations.

PowerShell is a cross-platform task automation solution made up of a command-line shell, a scripting language, and a configuration management framework. It runs on a variety of operating systems, including Windows, Linux, and macOS.

There are multiple ways to install PowerShell. In this guide, you’ll learn how to install PowerShell on an Arm Linux computer.

Before you begin

Confirm you are using an Arm machine by running:

    

        
        
uname -m

    

The output should be:

    

        
        aarch64

        
    

If you see a different result, you are not using an Arm computer running 64-bit Linux.

Install PowerShell on Arm Linux

Note

The PowerShell installation documentation for Linux package managers does not work for the Arm architecture because there is no Arm support in the repositories. This may change for future versions of PowerShell.

You can download a release file for the Arm architecture from GitHub and install it using the steps below:

Note

The following commands use PowerShell version 7.6.1. The same commands work with other versions. Replace the file used in these steps with the file for your version of choice. To find the latest version, see PowerShell releases .

  1. Copy and paste the commands below to your Linux shell prompt:
    

        
        
# Download the powershell '.tar.gz' archive
curl -L -o /tmp/powershell.tar.gz https://github.com/PowerShell/PowerShell/releases/download/v7.6.1/powershell-7.6.1-linux-arm64.tar.gz

# Create the target folder where powershell will be placed
sudo mkdir -p /opt/microsoft/powershell/7

# Expand powershell to the target folder
sudo tar zxf /tmp/powershell.tar.gz -C /opt/microsoft/powershell/7

# Set execute permissions
sudo chmod +x /opt/microsoft/powershell/7/pwsh

# Create the symbolic link that points to pwsh
sudo ln -s /opt/microsoft/powershell/7/pwsh /usr/bin/pwsh

    
  1. Confirm the pwsh executable is in the search path:
    

        
        
which pwsh

    

The path is printed:

    

        
        /usr/bin/pwsh

        
    
  1. Verify the installed version:
    

        
        
pwsh --version

    

The output is similar to:

    

        
        PowerShell 7.6.1

        
    

Verify PowerShell installation

To verify your installation of PowerShell, print a hello world message using pwsh:

    

        
        
pwsh -c Write-Host Hello Arm Linux world! 

    

The output is similar to:

    

        
        Hello Arm Linux world!

        
    

You are now ready to use PowerShell on your Arm Linux computer.


Give Feedback

How would you rate this tool quick-install guide?