2016-03-31 08:29:16 +02:00
|
|
|
Package installation instructions
|
|
|
|
=================================
|
|
|
|
|
2016-08-12 01:50:50 +02:00
|
|
|
Supports [Ubuntu 14.04][u14], [Ubuntu 16.04][u16],
|
|
|
|
[CentOS 7][cos], and [OS X 10.11][osx].
|
2016-07-27 21:55:10 +02:00
|
|
|
All packages are available on our GitHub [releases][] page.
|
2016-03-31 08:29:16 +02:00
|
|
|
|
2016-08-01 22:46:48 +02:00
|
|
|
Once the package is installed, run `powershell` from a terminal.
|
2016-03-31 08:29:16 +02:00
|
|
|
|
2016-08-12 01:50:50 +02:00
|
|
|
[u14]: #ubuntu-1404
|
|
|
|
[u16]: #ubuntu-1604
|
|
|
|
[cos]: #centos-7
|
|
|
|
[osx]: #os-x-1011
|
2016-08-01 22:46:48 +02:00
|
|
|
|
2016-03-31 08:29:16 +02:00
|
|
|
Ubuntu 14.04
|
|
|
|
============
|
|
|
|
|
2016-08-12 01:50:50 +02:00
|
|
|
Using [Ubuntu 14.04][], download the Debian package
|
2016-08-16 23:15:05 +02:00
|
|
|
`powershell_6.0.0-alpha.9-1ubuntu1.14.04.1_amd64.deb`
|
2016-08-12 01:50:50 +02:00
|
|
|
from the [releases][] page onto the Ubuntu machine.
|
2016-07-27 21:55:10 +02:00
|
|
|
|
|
|
|
Then execute the following in the terminal:
|
2016-03-31 08:29:16 +02:00
|
|
|
|
|
|
|
```sh
|
|
|
|
sudo apt-get install libunwind8 libicu52
|
2016-08-16 23:15:05 +02:00
|
|
|
sudo dpkg -i powershell_6.0.0-alpha.9-1ubuntu1.14.04.1_amd64.deb
|
2016-03-31 08:29:16 +02:00
|
|
|
```
|
|
|
|
|
2016-07-27 21:55:10 +02:00
|
|
|
[Ubuntu 14.04]: http://releases.ubuntu.com/14.04/
|
2016-03-31 08:29:16 +02:00
|
|
|
|
2016-08-12 01:50:50 +02:00
|
|
|
Ubuntu 16.04
|
|
|
|
============
|
|
|
|
|
|
|
|
Using [Ubuntu 16.04][], download the Debian package
|
2016-08-16 23:15:05 +02:00
|
|
|
`powershell_6.0.0-alpha.9-1ubuntu1.16.04.1_amd64.deb`
|
2016-08-12 01:50:50 +02:00
|
|
|
from the [releases][] page onto the Ubuntu machine.
|
|
|
|
|
|
|
|
Then execute the following in the terminal:
|
|
|
|
|
|
|
|
> Please note the different libicu package dependency!
|
|
|
|
|
|
|
|
```sh
|
|
|
|
sudo apt-get install libunwind8 libicu55
|
2016-08-16 23:15:05 +02:00
|
|
|
sudo dpkg -i powershell_6.0.0-alpha.9-1ubuntu1.16.04.1_amd64.deb
|
2016-08-12 01:50:50 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
[Ubuntu 16.04]: http://releases.ubuntu.com/16.04/
|
|
|
|
|
|
|
|
|
2016-07-27 21:55:10 +02:00
|
|
|
CentOS 7
|
|
|
|
========
|
|
|
|
|
2016-08-12 01:50:50 +02:00
|
|
|
Using [CentOS 7][], download the RPM package
|
2016-08-16 23:15:05 +02:00
|
|
|
`powershell-6.0.0_alpha.9-1.el7.centos.x86_64.rpm`
|
2016-08-12 01:50:50 +02:00
|
|
|
from the [releases][] page onto the CentOS machine.
|
2016-07-27 21:55:10 +02:00
|
|
|
|
|
|
|
Then execute the following in the terminal:
|
2016-03-31 08:29:16 +02:00
|
|
|
|
|
|
|
```sh
|
2016-08-16 23:15:05 +02:00
|
|
|
sudo yum install powershell-6.0.0_alpha.9-1.el7.centos.x86_64.rpm
|
2016-03-31 08:29:16 +02:00
|
|
|
```
|
|
|
|
|
2016-08-12 01:50:50 +02:00
|
|
|
> This package should work on Red Hat Enterprise Linux 7 too.
|
2016-07-27 21:55:10 +02:00
|
|
|
|
|
|
|
[CentOS 7]: https://www.centos.org/download/
|
|
|
|
|
2016-03-31 08:29:16 +02:00
|
|
|
OS X 10.11
|
|
|
|
==========
|
|
|
|
|
2016-08-16 04:02:27 +02:00
|
|
|
Using OS X 10.11, download the PKG package `powershell-6.0.0-alpha.9-osx.10.11-x64.pkg` from the [releases][] page onto the OS X machine.
|
2016-07-27 21:55:10 +02:00
|
|
|
|
2016-08-12 01:50:50 +02:00
|
|
|
Either double-click the file and follow the prompts,
|
|
|
|
or install it from the terminal:
|
2016-04-11 18:50:58 +02:00
|
|
|
|
|
|
|
```sh
|
2016-08-16 04:02:27 +02:00
|
|
|
sudo installer -pkg powershell-6.0.0-alpha.9-osx.10.11-x64.pkg -target /
|
2016-04-11 18:50:58 +02:00
|
|
|
```
|
|
|
|
|
2016-08-01 22:46:48 +02:00
|
|
|
Paths
|
|
|
|
=====
|
|
|
|
|
2016-08-16 04:02:27 +02:00
|
|
|
* `$PSHOME` is `/opt/microsoft/powershell/6.0.0-alpha.9/`
|
2016-08-11 23:26:33 +02:00
|
|
|
* User profiles will be read from `~/.config/powershell/profile.ps1`
|
|
|
|
* Default profiles will be read from `$PSHOME/profile.ps1`
|
|
|
|
* User modules will be read from `~/.local/share/powershell/Modules`
|
|
|
|
* Shared modules will be read from `/usr/local/share/powershell/Modules`
|
2016-08-12 01:50:50 +02:00
|
|
|
* Default modules will be read from `$PSHOME/Modules`
|
2016-08-11 23:26:33 +02:00
|
|
|
* PSReadLine history will be recorded to `~/.local/share/powershell/PSReadLine/ConsoleHost_history.txt`
|
2016-08-01 22:46:48 +02:00
|
|
|
|
2016-08-12 01:50:50 +02:00
|
|
|
The profiles respect PowerShell's per-host configuration,
|
|
|
|
so the default host-specific profiles exists at `Microsoft.PowerShell_profile.ps1` in the same locations.
|
2016-08-01 22:46:48 +02:00
|
|
|
|
|
|
|
On Linux and OS X, the [XDG Base Directory Specification][xdg-bds] is respected.
|
2016-08-02 01:32:16 +02:00
|
|
|
|
2016-08-02 01:33:47 +02:00
|
|
|
|
2016-08-12 01:50:50 +02:00
|
|
|
Note that because OS X is a derivation of BSD,
|
|
|
|
instead of `/opt`, the prefix used is `/usr/local`.
|
2016-08-16 04:02:27 +02:00
|
|
|
Thus, `$PSHOME` is `/usr/local/microsoft/powershell/6.0.0-alpha.9/`,
|
2016-08-12 01:50:50 +02:00
|
|
|
and the symlink is placed at `/usr/local/bin/powershell`.
|
2016-08-02 01:33:47 +02:00
|
|
|
|
|
|
|
[releases]: https://github.com/PowerShell/PowerShell/releases/latest
|
|
|
|
[xdg-bds]: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
|