Installing PowerShell Core is very straightforward. However, it differs slightly depending on the environment. Since we are still in beta, the best place to download the bits is the GitHub repository https://github.com/PowerShell/PowerShell/releases.
In Windows, simply installing the .msi
package is sufficient. In the case of Linux, you have the option of downloading the binaries or subscribing to the repository for your distribution of choice.
Linux repositories simplify package maintenance. Microsoft actively maintains repositories for several distributions (https://docs.microsoft.com/en-us/windows-server/administration/linux-package-repository-for-microsoft-software):
sudo rpm -Uvh http://packages.microsoft.com/config/rhel/7/packages-microsoft-prod.rpm sudo yum install powershell
Downloading the binaries directly from the release link is also possible using curl
or wget
or simply by passing the URL of the binary to yum
:
sudo yum install https://github.com/PowerShell...