Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

powershell feature but for all distros #1292

Open
elibroftw opened this issue Mar 9, 2025 · 3 comments
Open

powershell feature but for all distros #1292

elibroftw opened this issue Mar 9, 2025 · 3 comments
Assignees

Comments

@elibroftw
Copy link

elibroftw commented Mar 9, 2025

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

@sireeshajonnalagadda
Copy link
Contributor

Hi @elibroftw,
Thank you for raising the issue! I will check and get back to you.

Thanks,
Sireesha

@sireeshajonnalagadda sireeshajonnalagadda self-assigned this Mar 10, 2025
@sireeshajonnalagadda
Copy link
Contributor

Hi,
Can you please help me with the exact distro you are trying to install powershell for?

@elibroftw
Copy link
Author

elibroftw commented Mar 13, 2025

AlmaLinux 9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants