Package Details: powershell 7.6.10-1

Git Clone URL: https://aur.archlinux.org/powershell.git (read-only, click to copy)
Package Base: powershell
Description: A cross-platform automation and configuration tool/framework
Upstream URL: https://microsoft.com/PowerShell
Keywords: automation dotnet microsoft net powershell script scripting shell
Licenses: MIT
Submitter: jsteel
Maintainer: ChrisTX
Last Packager: ChrisTX
Votes: 94
Popularity: 1.95
First Submitted: 2016-11-26 22:16 (UTC)
Last Updated: 2026-11-13 22:36 (UTC)

Sources (32)

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-bin first, since dotnet-build-deps-10.0 is specific to the Arch-built dotnet-sdk. The packages abstract the differences in delivery of the dotnet/dotnet VMR components between both SDKs. If you see a conflict with dotnet-sdk-bin, this is the cause, and you need to use the -bin package 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-services and vscode-powershell packages, both are patched to not include the problematic rule. Alternatively, I'm providing powershell-mmi or powershell-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-bin before 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-Clipboard and Set-Clipboard cmdlets, there's support for wl-copy added, 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.

Latest Comments

1 2 3 4 5 6 .. 24 Next › Last »

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-11-03 15:50 (UTC) (edited on 2026-11-03 15:51 (UTC) by ChrisTX)

Small update: I have adjusted the package to the LTS and Preview versions of PowerShell, now available as powershell-lts and powershell-preview. By having a build of the preview version, I should be hopefully able to respond to issues faster by being able to identify them before they even make it into a stable release. Note that the LTS package is identical to this one, barring different description texts as 7.6 is LTS at the moment. Once 7.7 releases, they will diverge.


Quick note: Microsoft just broke Update-Help for PSResourceGet; the location on their web service is wrong. I've opened #2078 with them about this. There's a workaround in the package - no pkgrel bump since the build remains identical - now that bypasses this. However, if you run Update-Help as a user it will run into this error now. This shouldn't be a big issue for us, since the current Help content is always included with the package. Affected are all versions, stable, LTS, preview.

ChrisTX commented on 2026-11-01 20:40 (UTC) (edited on 2026-11-01 23:37 (UTC) by ChrisTX)

The switch to the dependency virtual packages is in, please see the pinned comment. The build with binary dependencies should produce virtually identical binaries as the build without, yet requiring only very few extra packages from AUR.

Using the same approach, I've isolated the differences in the dotnet VMR delivery between dotnet-sdk and dotnet-sdk-bin, making the build significantly more robust and coincidentally also making AArch64 significantly cleaner, while making cross-compilation easily supportable.

A build with binary dependencies would only require two virtual packages for the dependencies and if you use dotnet-sdk from extra, two packages from the dotnet VMR for which no matching binary release would exist. This is as minimal as I can make it, and it allows convenience builds and full source builds as options easily.

I have run integration tests to perform clean builds in a chroot with all build combinations using 10.0.14 SDKs, with both SDK types, for x64 and AArch64 using cross-compilation. Everything came back clean and all tests in every project succeeded. These tests also ran for PSES and PowerShell DSCv3. The whole code base (of all my AUR packages) is manually reviewed by me and as well as AI reviewed by Claude, with an extensive pre-commit hook to force consistency checks and run formatters and linters on everything.

I've also got tooling to run an AArch64 build in QEMU-user with tests, I'll try running that overnight today. Still, I can't test this in production, so I'd appreciate feedback for whether this works.

Edit: You can find my packages and my tooling in my aur-packages GitHub repository. If you want to run a full cross-compilation build, the scripts there can build that.

ChrisTX commented on 2026-11-01 07:14 (UTC) (edited on 2026-11-01 07:22 (UTC) by ChrisTX)

@rubin55 actually hold on. I'm totally with you on what you're saying, and I know this sucks. So I've spent the day pondering on a better solution, and I found one in the end:

The problem I mentioned below concerns only a subset of the dependencies, namely what should come from the dotnet/dotnet virtual monolithic repository (VMR). Without going into a lot of detail, Arch and upstream build different feature bands with different runtime identifiers (RIDs): linux-x64 vs arch-x64. This causes actual problems for an fxdependent build: For the VMR, the RID mismatch is a problem, and we actually need some components from that not shipped by Arch packages, mostly due to upstream choices.

However, this only concerns dotnet-io-ports-native and dotnet-source-build-reference-packages. These two we have to build if using Arch's dotnet-sdk rather than dotnet-sdk-bin (because io-ports-native is RID dependent and there's no arch-x64 binary on NuGet and the other is due to upstream choices)

Otherwise, the rest of the dependencies is managed only, so there isn't any RIDs attached to them. These we can freely use from NuGet if we want. What I said about the AUR rules stands, but there's a simple solution to this: I'm bundling all the dependencies in a powershell-deps virtual package, and then can provide powershell-deps-bin as well. The former would build everything from source, as packages should do, and the latter would take the dependencies from NuGet as before. That way you'd get a build with PowerShell and its PSModules built from source, with very few extra dependencies compared to what it used to be, as they'd all be taken from NuGet - but you'd still get all the various bug fixes I've incorporated that the -bin version doesn't carry. Functionally, this should produce identical builds, as the dependencies would be converted into ReadyToRun binaries by the PKGBUILD.

Licensing wise, this is possible: I went through the dependencies and their licenses, with MMI gone, the only problem would be JsonSchema.Net (or rather the whole json-everything). However, at this time, PowerShell still uses the 7.x branch that's apparently not covered by the fee licence. Once PowerShell upgrades to 9.x we'll have to build that from source, but that would be the only thing.

but with AUR, they are things you need to maintain.

Oh, I'm aware. But would such a powershell-deps-bin solution work out for your use case? The local version I'm testing only depends on two virtual AUR packages, dotnet-build-deps-10.0 and powershell-deps-bin, in addition the two packages mentioned if you're using dotnet-sdk from extra.

This is way worse for myself, but I've built myself significant tooling around this, for instance to sync up the commit SHAs for the various components as they're pinned. This way I'm pretty positive it should be manageable.

rubin55 commented on 2026-11-01 01:15 (UTC)

@ChrisTX thanks for the explanation, you obviously did a huge amount of work to make powershell build fully open source, which is impressive. From a user standpoint, at least for me, it becomes burdensome if a given package depends on many AUR packages - extras you don't feel the pain so much, but with AUR, they are things you need to maintain. Much good luck on the quest, I also hope a bunch of things can end up in extras and that your PRs upstream may be accepted.

ChrisTX commented on 2026-10-31 19:23 (UTC) (edited on 2026-10-31 20:24 (UTC) by ChrisTX)

@rubin55 I can understand that, it's very unfortunate how many dependencies it turned out being in the end. Unfortunately, the changes were necessary and unavoidable. It takes quite a while to run all the checks() on the various dependencies, but if you build then with --nocheck, it doesn't take that long.

I'll explain the reason for the change below, and I can't really provide -bin packages for the dependencies as you'll see. What I could do however, would be to try to set up a binary repository with the dependencies and PowerShell pre-built on Arch, from sources.

Question: would that be interesting to you and address your concerns?


As to the reasoning for the change: Microsoft builds their binary packages using an internal Azure repo rather than using NuGet.org and using the Microsoft .NET builds, not an open-source build like in extra. This poses two problems for us:

  1. Licensing: MS builds their packages together from source, but on NuGet, binaries can be licensed differently. In particular, there's a dependency on JsonSchema.Net, which is MIT licensed in source code, but uses a fee licence on NuGet. Microsoft also tends to licence package dependencies differently (see the comment about MMI in the PKGBUILD for a concrete example). This particularly affects Windows-adjacent assemblies that PowerShell still depends on.
  2. Binary compatibility: PowerShell and components use a lot of .NET extra framework libraries that are part of the dotnet VMR, but are shipped via NuGet instead of as part of the regular framework. The issue here is that open-source .NET and Microsoft .NET builds use different versioning and we can't really mix those different dotnet runtime libraries without causing subtle breakages.

I considered if I could maybe provide some or most of the dependencies as a -bin package by repackaging NuGet.org packages essentially, but this wouldn't solve either problem. So far, the build tried to mix this somehow, but it appears to have been the root cause for a lot of breakages and flakiness with the package. The dotnet outdated tool tried to reconcile this somehow, but for example there's absolutely nothing we could do about the situation right now, where Arch lags behind upstream with .NET updates - but each PowerShell binary gets built for the respectively latest .NET 10 version, and so all the NuGet binaries published by them do as well. We'd need to use binaries built against a newer .NET with an older build, and it's not even the same flavour of .NET with build differences like Arch disabling telemetry.


In the end, it was the choice between a problematically licensed, Frankenstein build mixing assemblies on a best effort, or trying to clean this up towards a full open source build with the various problematic parts addressed. I would like to see .NET and PowerShell improve on Linux and so I decided to try to develop an actual open source build that could become a model for other distributions - and of course, opening a path to the regular Arch repositories. Debian for instance does not consider the licensing situation suitable for inclusion.

The amount of patching required would be unacceptable for Arch's KISS standards atm, though. Hence, I tried separating every modification into a patch that would have some way of getting upstreamed. By extension, this also means I'm trying to drastically reduce downstream patching by fixing stuff upstream. I opened tons of PRs in recent days with all kinds of .NET and PowerShell projects due to the work, and hope I can reduce the modifications this needs to carry to a minimum.

Furthermore, a lot of the dependencies here are general .NET packages developed by the .NET team but Arch simply doesn't ship any dotnet packages other than the core, which is why it's that many AUR packages in the end. Ideally these core packages would end up in extra at some point. dotnet-system-io-ports-native is one of those packages that really should just be part of the Arch packages. I'll also look in the coming days at the Arch .NET packages and see if I could open some good PRs for them to reduce this a bit. There's also the unrelated issue that Arch's dotnet-tool doesn't ship the new .NET 10 dnx command, I'll try to work that in, too.

Lastly, there's the AUR guidelines of course: Packages that use prebuilt deliverables, when the sources are available, must use the -bin suffix.. What we did so far violated that rule, and we shipped proprietary dependencies like MMI.


TL;DR Unavoidable change due to licensing and binary compatibility reasons, as well as AUR guidelines. I can't offer reasonable -bin packages, best I could do is to look into setting up a binary repository if there's interest.

rubin55 commented on 2026-10-31 14:17 (UTC)

@ChrisTX This was just too much for me, I needed to install another 22 packages just to build this, of which 17 are in the AUR, which are all packages I need to keep an eye on. Good luck with this package, I think this will just make everyone install powershell-bin. For me this was the straw that broke the camels' back so to speak, and uninstalled powershell and powershell-editor-services.

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-bin first, since dotnet-build-deps-10.0 is specific to the Arch-built dotnet-sdk. The packages abstract the differences in delivery of the dotnet/dotnet VMR components between both SDKs. If you see a conflict with dotnet-sdk-bin, this is the cause, and you need to use the -bin package 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-services and vscode-powershell packages, both are patched to not include the problematic rule. Alternatively, I'm providing powershell-mmi or powershell-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-bin before 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-Clipboard and Set-Clipboard cmdlets, there's support for wl-copy added, 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.

ChrisTX commented on 2026-10-22 21:32 (UTC)

Since 7.6.7, Test-Json is buggy. Upstream issue: https://github.com/PowerShell/PowerShell/issues/28218 Should be fixed with the next release.

I have disabled the associated tests for now, but the test fails are legitimate here.

ChrisTX commented on 2026-08-26 05:27 (UTC) (edited on 2026-09-10 18:27 (UTC) by ChrisTX)

@weltio xdg-open is needed by PowerShell, see my comment here in the PKGBUILD. It's hardcoded in .NET, see here. The tests break because the invoke functionality of PowerShell breaks. That's why there's a hard dependency on xdg-utils - so I'm not quite sure how you managed to not have xdg-open? For me it works on headless systems both, in a chroot and bare metal builds.

As for the --force, I'm aware, that's because you didn't clean the build directory. I'll fix that with the next release though (as my health permits).

Update with 7.6.6-1 this has been addressed.


@B3l3tte xdg-utils entire logic is based on which desktop environment you have. Specifically, for Terminals, it queries here via kreadconfig6 what your terminal is. For me on KDE as well:

$ kreadconfig6 --file kdeglobals --group General --key TerminalApplication --default console
/usr/bin/ghostty --gtk-single-instance=true

What you need to do is go System Settings -> Default Applications and set which terminal you want it to use (and have installed). Then the kreadconfig6 command will return the right setting. Alternatively, build in a chroot, but you should fix this, as there's more apps relying on this. See also the upstream requirements for each DE.

As for qtpaths, yeah you will need qt5-tools installed. It's been removed upstream, see here, but in the current release 1.2.1, it's still there.


I can't really do anything about all of this, since it's a hard dependency of PowerShell / .NET. You will need a working xdg-utils.