Installation or Setup

suggest change

Windows

Windows PowerShell is included with the Windows Management Framework. Modern Windows versions already have it. Installing a newer Windows Management Framework updates that edition.

PowerShell 7 is a separate install. It does not replace Windows PowerShell.

Other Platforms

PowerShell 6 and later can be installed on other platforms. Current packages, including PowerShell 7, are listed here.

The commands below are the old Ubuntu 16.04 steps for that era's package list. apt-key is deprecated. Prefer the current instructions at the link above.

To install run the following:

# Import the public repository GPG keys
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
# Register the Microsoft Ubuntu repository
curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list | sudo tee /etc/apt/sources.list.d/microsoft.list
# Update apt-get
sudo apt-get update
# Install PowerShell
sudo apt-get install -y powershell
# Start PowerShell
powershell

After registering the Microsoft repository once as superuser, from then on, you just need to use sudo apt-get upgrade powershell to update it. Then just run powershell

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents