Running Powershell On OM

I’m a cross-platform dev writing apps in .NET C# console & AvaloniaUI.
OM has been a great platform for doing this work.

Just wanted to mention that I wanted to install Powershell but couldn’t find it in repositories, but I was able to download it and install it.
Here are the steps (in case anyone else wants to run it)

  1. Download Powershell RPM : https://github.com/PowerShell/PowerShell/releases/download/v7.6.1/powershell-7.6.1-1.rh.x86_64.rpm

  2. The following command was failing & I couldn’t get it working:
    sudo dnf install ./powershell-7.6.1-1.rh.x86_64.rpm

  3. You’ll see some errors that are related to missing libraries:

  4. I installed libicu via : sudo dnf install libicudata.x86_64

  5. I also installed ssl libraries

  6. But it still failed the same way when installing powershell.

  7. Finally, I found the following command and it worked great:
    sudo rpm -ivh --nodeps powershell-7.6.1-1.rh.x86_64.rpm

The dependencies are already there so once you start powershell ($ pwsh ) everything will work fine.

Ok, that’s it, just thought I’d post it here in case anyone else needs it.

1 Like

You could go to OpenMandriva Cooker Chat channel and ask how to build this for OM repositories if you are so inclined.

1 Like

Wow, thanks a ton!

I have a ton of scripts I need to be able to run.

One step closer to complete Windows independence!

1 Like