Supports Ubuntu 14.04, CentOS 7.1, and OS X 10.11. All packages are available on our GitHub releases page.
Once the package is installed, powershell will be in your path, ready to be launched from a terminal.
- User profiles will be read from
~/.config/powershell/profile.ps1. - User modules will be read from
~/.local/share/powershell/Modules - PSReadLine history will be recorded to
~/.local/share/powershell/PSReadLine/ConsoleHost_history.txt - System profiles will be read from
/opt/microsoft/powershell/profile.ps1. - System modules will be read from
/opt/microsoft/powershell/Modules
The profiles respect PowerShell's per-host configuration, so the default host-specific profiles exists at Microsoft.PowerShell_profile.ps1 in the same locations.
On Linux and OS X, the XDG Base Directory Specification is respected.
Note that to place PowerShell in your path, the packages create a symlink from
/usr/bin/powershellto the/opt/microsoft/powershell/powershellexecutable.
Using Ubuntu 14.04, download the Debian package powershell_6.0.0-alpha.7-1_amd64.deb from the releases page onto the Ubuntu machine.
Then execute the following in the terminal:
sudo apt-get install libunwind8 libicu52
sudo dpkg -i powershell_6.0.0-alpha.7-1_amd64.debPlease note that that Ubuntu 16.04 is not yet supported, but coming soon!
Using CentOS 7, download the RPM package powershell-6.0.0_alpha.7-1.x86_64.rpm from the releases page onto the CentOS machine.
Then execute the following in the terminal:
sudo yum install powershell-6.0.0_alpha.7-1.x86_64.rpmPlease note that we have not tested this package on Red Hat Enterprise Linux.
Using OS X 10.11, download the PKG package powershell-6.0.0-alpha.7.pkg from the releases page onto the OS X machine.
Either double-click the file and follow the prompts, or install it from the terminal:
sudo installer -pkg powershell-6.0.0-alpha.7.pkg -target /Note that because OS X is a derivation of BSD, instead of
/opt, the prefix used is/usr/local. Thus,powershelllives at/usr/local/microsoft/powershell, and the symlink is placed at/usr/local/bin/powershell. This affects the system modules and profiles as well.