Skip to content

Multiplatform

PowerShell 7 is the latest major release of PowerShell, and it provides many new features and improvements over previous versions. Here's how to install it on various operating systems:

Windows

On Windows, you can download the PowerShell 7 installer from the official PowerShell GitHub repository. Choose the MSI installer for your architecture (either x86 or x64) and download the file.

Once the installer is downloaded, double-click on the file to start the installation wizard. Follow the on-screen instructions to complete the installation process. After installation is complete, you can open PowerShell 7 from the Start menu or by typing pwsh in the command prompt.

Linux

On Linux, you can install PowerShell 7 using your distribution's package manager. Here are the commands for some popular distributions:

Ubuntu 18.04 and later, and Debian 10 and later: Run the following commands in the terminal:

# Update the list of packages
sudo apt-get update
# Install pre-requisite packages.
sudo apt-get install -y wget apt-transport-https software-properties-common
# Download the Microsoft repository GPG keys
wget -q "https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/packages-microsoft-prod.deb"
# Register the Microsoft repository GPG keys
sudo dpkg -i packages-microsoft-prod.deb
# Update the list of packages after we added packages.microsoft.com
sudo apt-get update
# Install PowerShell
sudo apt-get install -y powershell
# Start PowerShell
pwsh

macOS

On macOS, you can install PowerShell 7 using Homebrew, a popular package manager for macOS. Run the following command in the terminal:

brew install --cask powershell

After installation is complete, you can open PowerShell 7 from the Launchpad or by typing pwsh in the terminal.