amazon-linux-2023
amazon-linux-2023 copied to clipboard
[Package Request] - powershell
What package is missing from Amazon Linux 2023? Please describe and include package name. powershell
Is this an update to existing package or new package request? No
Is this package available in Amazon Linux 2? If it is available via external sources such as EPEL, please specify. The package is available for RedHat via the Linux Software Repository for Microsoft Products. However the RedHat version does not work on AmazonLinux 2023.
Any additional information you'd like to include. (use-cases, etc) If installed either through the official Microsoft Linux repository for RedHat or through manual install, the pwsh command gets immediately killed. This scenario happens on an amazonlinux:latest clean container.
It looks like PowerShell isn't currently packaged for Fedora, so I had a bit of a go trying to build it, which was an interesting distraction into learning something about how dotnet projects build.
There is certainly a bit of bootstrapping fun as the documented way to build PowerShell starts with running a PowerShell script. It turns out this isn't strictly needed as you can invoke dotnet directly to start building.
I didn't get past the various points of being able to vendor the dependencies and match up dotnet SDK versions enough to get a bootstrap build going, but I did timebox myself on this.
If you have any tips of getting to the point of being able to have all artifacts needed to build to be local, and building with a dotnet shipped in Amazon Linux... I'm all ears.
Completely agreed that PowerShell ought to be included in new AMIs. It's so much easier to write some simple automation scripts in PowerShell than Bash.
I can't offer any advice on building PowerShell from source, as I've not done so before.
It's pre-built for pretty much all operating systems though.
https://github.com/PowerShell/PowerShell/releases