Skip to content

powershell feature but for all distros #1292

Closed
@elibroftw

Description

@elibroftw

how can we make this work on all platforms? I couldn't install powershell in my dockerfile (almalinux) even after installing dependencies:

nothing provides krb5 needed by powershell

Then I see this powershell feature which is debian-only

This is impeding adoption of powershell in my opinion.

My install script FYI:

#!/usr/bin/env bash

dnf install -y wget
wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O /usr/bin/yq && chmod +x /usr/bin/yq
dnf install -y krb5-libs libicu openssl-libs zlib
# Problem: conflicting requests
#   - nothing provides krb5 needed by powershell-7.5.0-1.cm.aarch64 from @commandline
latest_release=$(curl -s https://api.github.com/repos/PowerShell/PowerShell/releases/latest) && \
    rpmlink=$(echo "$latest_release" | arch=$(arch) yq -r '[.assets[] | select(.name == ("*" + strenv(arch) + ".rpm")) | .browser_download_url'][0]) && \
    dnf install -y $rpmlink

Seems like rpm -Uvh --nodeps powershell-7.5.0-1.cm.x86_64.rpm $rpmlink does the trick

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions