HowTo Install Microsoft PowerShell: Difference between revisions

From MediaWiki
Jump to navigationJump to search
Line 2: Line 2:
= Overview =
= Overview =
'''[https://docs.microsoft.com/en-us/powershell/scripting/powershell-scripting?view=powershell-6 PowerShell]''' is built on the '''[https://en.wikipedia.org/wiki/.NET_Framework .NET Framework]''', PowerShell is a task-based command-line shell and scripting language; it is designed specifically for system administrators and power-users, to rapidly automate the administration of multiple operating systems (Linux, macOS, Unix, and Windows) and the processes related to the applications that run on those operating systems.
'''[https://docs.microsoft.com/en-us/powershell/scripting/powershell-scripting?view=powershell-6 PowerShell]''' is built on the '''[https://en.wikipedia.org/wiki/.NET_Framework .NET Framework]''', PowerShell is a task-based command-line shell and scripting language; it is designed specifically for system administrators and power-users, to rapidly automate the administration of multiple operating systems (Linux, macOS, Unix, and Windows) and the processes related to the applications that run on those operating systems.
= Learning PowerShell =
Whether you're a Developer, a DevOps or an IT Professional, this '''[https://github.com/PowerShell/PowerShell/tree/master/docs/learning-powershell doc]''' will help you getting started with PowerShell. In this document we'll cover the following: installing PowerShell, samples walkthrough, PowerShell editor, debugger, testing tools and a map book for experienced bash users to get started with PowerShell faster.


= PowerShell Installation Instructions =
= PowerShell Installation Instructions =

Revision as of 07:51, 5 July 2018

Overview

PowerShell is built on the .NET Framework, PowerShell is a task-based command-line shell and scripting language; it is designed specifically for system administrators and power-users, to rapidly automate the administration of multiple operating systems (Linux, macOS, Unix, and Windows) and the processes related to the applications that run on those operating systems.

Learning PowerShell

Whether you're a Developer, a DevOps or an IT Professional, this doc will help you getting started with PowerShell. In this document we'll cover the following: installing PowerShell, samples walkthrough, PowerShell editor, debugger, testing tools and a map book for experienced bash users to get started with PowerShell faster.

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;