Difference between revisions of "HowTo Install Microsoft PowerShell"

From NST Wiki
Jump to navigationJump to search
(PowerShell Installation Instructions)
(PowerShell Installation Instructions)
Line 4: Line 4:
  
 
= PowerShell Installation Instructions =
 
= PowerShell Installation Instructions =
PowerShell Core, for Linux, is published to package repositories for easy installation (and updates). Below is the preferred method for installation:
+
PowerShell Core, for Linux, is published to package repositories for easy installation (and updates). Below is the preferred method for installation for the "'''nst'''" sudo user:
  
 
  <span style="color: green;"># Register the Microsoft signature key</span>
 
  <span style="color: green;"># Register the Microsoft signature key</span>

Revision as of 08:40, 5 July 2018

Overview

PowerShell Installation Instructions

PowerShell Core, for Linux, is published to package repositories for easy installation (and updates). Below is the preferred method for installation for the "nst" sudo user:

# Register the Microsoft signature key
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc;

# Register the Microsoft RedHat repository
curl https://packages.microsoft.com/config/rhel/7/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo;

# Update the list of products
sudo dnf update;

# Install a system component
sudo dnf install compat-openssl10;

# Install PowerShell
sudo dnf install -y powershell;

# Start PowerShell
pwsh;