Bundle for PowerShell Core

Having a bundle for PowerShell 6 would be very helpful.

Thanks!

E.

This is dotnet stuff. Not easy to build, at all. If someone wants to volunteer packaging it, …

What’s the use case for powershell?

Cross platform scripting and I am seeing more uses for it for AWS Serverless Applications.

Powershell was the top reason I abandoned Windows…
For AWS,

AWS Lambda natively supports Java, Go, PowerShell, Node.js, C#, Python, and Ruby code, and provides a Runtime API which allows you to use any additional programming languages to author your functions. 

using Powershell just doesn’t sound like cross-platform.

I would say as a DevOps/sysadmin in general. In my experience, a lot of the vendors in the software-defined infrastructure (SDI) space are learning on PowerShell.

For example, I used to do a lot with VMware cloud deployments and they expose many things though through PowerShell but certain lower-level things required Linux programs (they’re getting serious about unifying their APIs to be RESTful now). I eventually built up an artillery of scripts that would execute on cross-platform workers but if PS Core would have been mature then it would have been nice to do everything on a Linux box.

2 Likes

FWIW, I was able to install the binary archives for PS Core on a CL system as described here :

pwsh
PowerShell 6.2.1
Copyright (c) Microsoft Corporation. All rights reserved.

https://aka.ms/pscore6-docs
Type 'help' to get help.

PS /home/puneetse> Get-Item /etc/os-release | Get-Content
NAME="Clear Linux OS"
VERSION=1
ID=clear-linux-os
ID_LIKE=clear-linux-os
VERSION_ID=30330
PRETTY_NAME="Clear Linux OS"
ANSI_COLOR="1;35"
HOME_URL="https://clearlinux.org"
SUPPORT_URL="https://clearlinux.org"
BUG_REPORT_URL="mailto:dev@lists.clearlinux.org"
PRIVACY_POLICY_URL="http://www.intel.com/privacy"

5 Likes

I’ve tried to fix the dependencies but I get this error on execute of pwsh:
No usable version of the libssl was found
Aborted

thoughts?

+1
I have to use powershell a lot for interacting with idrac. Let’s not forget all those cloud operations have to be running on hardware somewhere!

Current version of CL & PS 7.2.3 works fine too (using “binary archive file” approach)

PS /home/user> Get-Item /etc/os-release | Get-Content
NAME="Clear Linux OS"
VERSION=1
ID=clear-linux-os
ID_LIKE=clear-linux-os
VERSION_ID=36420
PRETTY_NAME="Clear Linux OS"
ANSI_COLOR="1;35"
HOME_URL="https://clearlinux.org"
SUPPORT_URL="https://clearlinux.org"
BUG_REPORT_URL="mailto:dev@lists.clearlinux.org"
PRIVACY_POLICY_URL="http://www.intel.com/privacy"
BUILD_ID=36420

Hi

Microsoft provides the script to install .NET (.NET Core) to Linux.
This SDK has “dotnet” command and it can access various assets in NuGet gallery. PowerShell is also there.

Probably easiest way to install PowerShell without package dependency consideration or file copy from binary is

  1. run .NET install script provided by Microsoft
  2. run “dotnet” command to install PowerShell from NuGet gallery

Installing from NuGet also support future update.

Here is how-to.

https://impsbl.hatenablog.jp/entry/InstallDotNetAndPowerShellOnAnyLinuxDistro_en