pwsh
from a terminal./usr/local/microsoft/powershell/6
folder is replaced by /usr/local/microsoft/powershell/7
.brew
command is not found, youneed to install Homebrew following their instructions. Otherwise you may install PowerShellvia Direct Download or fromBinary Archives.$PSVersionTable
.$PSVersionTable
.powershell-lts-7.0.1-osx-x64.pkg
from the releases page onto yourmacOS machine.~/.dotnet/tools
to your PATH
environment variable. However, thecurrently running shell does not have the updated PATH
. You should be able to start PowerShellfrom a new shell by typing pwsh
.tar.gz
archives are provided for the macOS platform to enable advanceddeployment scenarios.sudo port selfupdate
.sudo port upgrade outdated
.sudo port install openssl10
.sudo rm
.$PSHOME
is /usr/local/microsoft/powershell/7.0.1/
~/.config/powershell/profile.ps1
$PSHOME/profile.ps1
~/.local/share/powershell/Modules
/usr/local/share/powershell/Modules
$PSHOME/Modules
~/.local/share/powershell/PSReadLine/ConsoleHost_history.txt
Microsoft.PowerShell_profile.ps1
in the same locations./usr/local
is used instead of /opt
. So,$PSHOME
is /usr/local/microsoft/powershell/7.0.1/
, and the symbolic link is placed at/usr/local/bin/pwsh
.