PowerShell 7.7.0 needs .NET 11, which Arch Linux doesn't build from source yet. This package builds PowerShell from source against Arch's .NET, so it stays on the 7.6 line (now 7.6.10) and moves to 7.7 once Arch ships .NET 11. Until then, powershell-preview has 7.7.0, built with Microsoft's .NET 11 (dotnet-sdk-bin).
Note for building with Microsoft's .NET 10 instead (dotnet-build-deps-10.0-bin): it needs dotnet-sdk-10.0-bin, whose package (dotnet-core-10.0-bin) is outdated at 10.0.0 at the moment; an update seems to be on its way.
Pinned Comments
ChrisTX commented on 2026-11-13 04:05 (UTC)
PowerShell 7.7.0 needs .NET 11, which Arch Linux doesn't build from source yet. This package builds PowerShell from source against Arch's .NET, so it stays on the 7.6 line (now 7.6.10) and moves to 7.7 once Arch ships .NET 11. Until then, powershell-preview has 7.7.0, built with Microsoft's .NET 11 (dotnet-sdk-bin).
Note for building with Microsoft's .NET 10 instead (dotnet-build-deps-10.0-bin): it needs dotnet-sdk-10.0-bin, whose package (dotnet-core-10.0-bin) is outdated at 10.0.0 at the moment; an update seems to be on its way.
ChrisTX commented on 2026-10-31 06:13 (UTC) (edited on 2026-11-03 07:52 (UTC) by ChrisTX)
The package is now 100% source built, with all dependencies included. Additionally, the MMI library with unclear licensing is not needed anymore.
The important things you need to know about the package first:
Building with dotnet-sdk-bin instead of dotnet-sdk: Install
dotnet-build-deps-10.0-binfirst, sincedotnet-build-deps-10.0is specific to the Arch-builtdotnet-sdk. The packages abstract the differences in delivery of the dotnet/dotnet VMR components between both SDKs. If you see a conflict withdotnet-sdk-bin, this is the cause, and you need to use the-binpackage instead.Using PSScriptAnalyzer from PSGallery or the PowerShell VS Code extension: PSScriptAnalyzer requires MMI in the PowerShell core because they have a Windows-only rule that never runs on Linux, but still loads and looks for the assembly. You can either install my
powershell-editor-servicesandvscode-powershellpackages, both are patched to not include the problematic rule. Alternatively, I'm providingpowershell-mmiorpowershell-mmi-bin. This will add the MMI binary back and it will be loaded by the PWSH core as before then. Please see the PKGBUILD comment about the licensing beforehand.Dependencies from source or binaries NuGet.org: The build by default is 100% built from source now, thus there's a lot of dependency packages being required now. If you'd like to use pre-built binaries from NuGet.org instead, you can install
powershell-deps-binbefore building. This will use pre-built dependencies from NuGet as before, while still compiling PowerShell itself and its PSModules itself from source. The NuGet binaries it draws in are purely managed code, thus the result should be practically identical.PowerShellGet v3 beta as an option: The beta of PowerShellGet v3 is now packaged as
powershell-powershellget-v3, which will shadow the included PowerShellGet v2 and relies on PSResourceGet for its backend instead. Please note that while it seems functional, the upstream repository appears dormant or inactive for now. I can't speak for how well the current state of the project works in comparison to v2.AArch64 support: The package should now work on ALARM, either directly built or via cross-compilation. If anyone is using this on AArch64, I'd appreciate if you could leave a comment whether this works for you.
Now, for some notable improvements:
Wayland support for Clipboard: For the
Get-ClipboardandSet-Clipboardcmdlets, there's support forwl-copyadded, which means they work under Wayland now. I considered that valuable for us here, since the rolling release nature of Arch means we've got most users on Wayland by now. This was worked on upstream some years ago, but two working groups in PowerShell at Microsoft posed opposite demands for the PR that was opened. I'm trying to get the ball rolling on that issue upstream again as well.All tests are now enabled and working: The tests are now all run with a decent degree of isolation, and I couldn't find any errand files or path collisions anymore. The tests that used to be flaky due to bugs have been addressed by patching the underlying bugs, with everything being targeted for upstream. Hopefully, this should be the end of people experiencing strange and non-reproducible test failures.
Clear licensing: The unused code that still depended on the MMI library has been removed, and thus the library could be removed.
P.S.: You can find my all my tooling, together with all my package sources, in my aur-packages GitHub repository. If you're interested in cross-compiling PowerShell, the tooling to do that with all dependencies can be found there.