PowerShell

Jump to: navigation, search
PowerShell 6.0 Core
PowerShell Core 6.0 icon

PowerShell 6.0 Core is a cross-platform command line shell and scripting language.

Download for openSUSE

Vendor: Microsoft
Developer: Microsoft
License: MIT
Web: https://github.com/PowerShell


PowerShell Core is a cross-platform for Windows, Linux, and macOS available command line shell and scripting language from Microsoft.

Features

PowerShell is optimized for dealing with structured data (e.g. JSON, CSV, XML, etc.), REST APIs, and object models.

These include:

  • consistent structure for the commands (Verb-Noun)
  • consistent syntax
  • completely object-based pipeline
  • remoting

Installation

PowerShell Core is not provided by official openSUSE repositories. You can deploy PowerShell binaries directly using the Linux tar.gz archive, but you would need to set up the necessary dependencies first.

sudo zypper update

sudo zypper in curl tar libicu60_2 libopenssl1_0_0

curl -L https://github.com/PowerShell/PowerShell/releases/download/v6.1.3/powershell-6.1.3-linux-x64.tar.gz -o /tmp/powershell.tar.gz

sudo mkdir -p /opt/microsoft/powershell

sudo tar -xzf /tmp/powershell.tar.gz -C /opt/microsoft/powershell/

sudo ln -s /opt/microsoft/powershell/pwsh /usr/bin/pwsh

sudo chmod +x /usr/bin/pwsh

pwsh -command Write-Host "Hello Geekos!" -ForegroundColor Green

External links