How To Update Power Shell May 2026

$PSVersionTable.PSVersion

# Update package list and upgrade PowerShell sudo apt update sudo apt upgrade powershell If not installed via repository, download the latest .deb from GitHub and run: how to update power shell

brew upgrade powershell Or download the latest .pkg from the GitHub releases page. Using apt with Microsoft repository: $PSVersionTable

winget upgrade --id Microsoft.PowerShell .deb After installation

choco upgrade powershell-core Using Homebrew (recommended):

sudo dpkg -i powershell_<version>.deb After installation, restart your PowerShell session and run:

در حال کار...