GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — PowerShell/docs/installation/linux.md at master · yodebu/PowerShell

Expand file tree

/

linux.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
102 lines (70 loc) · 3.01 KB
/

linux.md

Copy path

File metadata and controls

102 lines (70 loc) · 3.01 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

Package installation instructions

Supports Ubuntu 14.04, Ubuntu 16.04, CentOS 7, and OS X 10.11. All packages are available on our GitHub releases page.

Once the package is installed, run powershell from a terminal.

Ubuntu 14.04

Using Ubuntu 14.04, download the Debian package powershell_6.0.0-alpha.9-1ubuntu1.14.04.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.9-1ubuntu1.14.04.1_amd64.deb

Ubuntu 16.04

Using Ubuntu 16.04, download the Debian package powershell_6.0.0-alpha.9-1ubuntu1.16.04.1_amd64.deb from the releases page onto the Ubuntu machine.

Then execute the following in the terminal:

Please note the different libicu package dependency!

sudo apt-get install libunwind8 libicu55
sudo dpkg -i powershell_6.0.0-alpha.9-1ubuntu1.16.04.1_amd64.deb

CentOS 7

Using CentOS 7, download the RPM package powershell-6.0.0_alpha.9-1.el7.centos.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.9-1.el7.centos.x86_64.rpm

This package works on Oracle Linux 7. It should work on Red Hat Enterprise Linux 7 too.

OS X 10.11

Using OS X 10.11, download the PKG package powershell-6.0.0-alpha.9.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.9.pkg -target /

Paths

  • $PSHOME is /opt/microsoft/powershell/6.0.0-alpha.9/
  • 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
  • Default modules will be read from $PSHOME/Modules
  • PSReadLine history will be recorded to ~/.local/share/powershell/PSReadLine/ConsoleHost_history.txt

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 because OS X is a derivation of BSD, instead of /opt, the prefix used is /usr/local. Thus, $PSHOME is /usr/local/microsoft/powershell/6.0.0-alpha.9/, and the symlink is placed at /usr/local/bin/powershell.

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.