Difference between revisions of "HowTo Install Microsoft PowerShell"
From NST Wiki
Jump to navigationJump to search (→PowerShell Installation Instructions) |
(→PowerShell Installation Instructions) |
||
Line 5: | Line 5: | ||
= PowerShell Installation Instructions = | = PowerShell Installation Instructions = | ||
<span style="color: green;"># Register the Microsoft signature key</span> | <span style="color: green;"># Register the Microsoft signature key</span> | ||
− | sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc | + | <pre>sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc;</pre> |
− | # Register the Microsoft RedHat repository | + | <span style="color: green;"># Register the Microsoft RedHat repository</span> |
− | curl https://packages.microsoft.com/config/rhel/7/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo | + | <pre>curl https://packages.microsoft.com/config/rhel/7/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo;</pre> |
− | # Update the list of products | + | <span style="color: green;"># Update the list of products</span> |
− | sudo dnf update | + | <pre>sudo dnf update;</pre> |
− | # Install a system component | + | <span style="color: green;"># Install a system component</span> |
− | sudo dnf install compat-openssl10 | + | <pre>sudo dnf install compat-openssl10;</pre> |
− | # Install PowerShell | + | <span style="color: green;"># Install PowerShell</span> |
− | sudo dnf install -y powershell | + | <pre>sudo dnf install -y powershell;</pre> |
− | # Start PowerShell | + | <span style="color: green;"># Start PowerShell</span> |
− | pwsh | + | <pre>pwsh;</pre> |
Revision as of 08:30, 5 July 2018
Overview
PowerShell Installation Instructions
# 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;