Package Details: powershell 7.4.1-4

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 (latest release)
Upstream URL: https://github.com/PowerShell/PowerShell
Keywords: .net automation microsoft net powershell script scripting shell
Licenses: MIT
Submitter: jsteel
Maintainer: kylesferrazza (richardba, carsme)
Last Packager: carsme
Votes: 84
Popularity: 0.96
First Submitted: 2016-11-26 22:16 (UTC)
Last Updated: 2024-03-10 11:11 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 .. 19 Next › Last »

JakeMoe commented on 2023-03-01 21:18 (UTC)

@carsme Cheers for that, I've tried the bin package and it's got PowerShellGet, and Get-PsRepository shows PSGallery. :-) It's also got PSReadLine so tab completion and other features work as well. ;-)

carsme commented on 2023-02-26 17:32 (UTC)

@JakeMoe Something in the package build process must be wrong.

I don't have time to look into it further now but I checked the binary version of this package (powershell-bin) and that has PowerShellGet, so you can use that in the meantime.

JakeMoe commented on 2023-02-24 06:11 (UTC)

I've recently installed my system and this package, but Get-Module -ListAvailable is only showing 4 modules; PowerShellGet is notably missing, which means I can't get others. I haven't used PowerShell on Linux much; is this normal? How do I get PowerShellGet installed?

synthead commented on 2022-12-12 21:30 (UTC)

Working PKGBUILD for 7.3.0: https://gist.github.com/synthead/6a356c12a1067e91e154e5aafbeda9fc

synthead commented on 2022-11-28 17:45 (UTC)

This package doesn't build:

==> Starting build()...
  Determining projects to restore...
  Restored /home/jane/.cache/pacaur/powershell/src/powershell/src/Microsoft.PowerShell.Security/Microsoft.PowerShell.Security.csproj (in 639 ms).
  Restored /home/jane/.cache/pacaur/powershell/src/powershell/src/System.Management.Automation/System.Management.Automation.csproj (in 639 ms).
  Restored /home/jane/.cache/pacaur/powershell/src/powershell/src/Microsoft.PowerShell.ConsoleHost/Microsoft.PowerShell.ConsoleHost.csproj (in 639 ms).
  Restored /home/jane/.cache/pacaur/powershell/src/powershell/src/Microsoft.PowerShell.Commands.Management/Microsoft.PowerShell.Commands.Management.csproj (in 639 ms).
  Restored /home/jane/.cache/pacaur/powershell/src/powershell/src/Microsoft.PowerShell.Commands.Utility/Microsoft.PowerShell.Commands.Utility.csproj (in 688 ms).
  Restored /home/jane/.cache/pacaur/powershell/src/powershell/src/Microsoft.PowerShell.SDK/Microsoft.PowerShell.SDK.csproj (in 707 ms).
  Restored /home/jane/.cache/pacaur/powershell/src/powershell/src/powershell-unix/powershell-unix.csproj (in 6.79 sec).
  Determining projects to restore...
  Restored /home/jane/.cache/pacaur/powershell/src/powershell/src/ResGen/ResGen.csproj (in 183 ms).
  Determining projects to restore...
  Restored /home/jane/.cache/pacaur/powershell/src/powershell/src/TypeCatalogGen/TypeCatalogGen.csproj (in 209 ms).
~/.cache/pacaur/powershell/src/powershell/src/ResGen ~/.cache/pacaur/powershell/src/powershell
/home/jane/.cache/pacaur/powershell/src/powershell/src/ResGen/Program.cs(12,18): warning CA1052: Type 'Program' is a static holder type but is neither static nor NotInheritable [/home/jane/.cache/pacaur/powershell/src/powershell/src/ResGen/ResGen.csproj]
You must install or update .NET to run this application.

App: /home/jane/.cache/pacaur/powershell/src/powershell/src/ResGen/bin/Debug/net6.0/resgen
Architecture: x64
Framework: 'Microsoft.NETCore.App', version '6.0.0' (x64)
.NET location: /usr/share/dotnet

The following frameworks were found:
  7.0.0 at [/usr/share/dotnet/shared/Microsoft.NETCore.App]

Learn about framework resolution:
https://aka.ms/dotnet/app-launch-failed

To install missing framework, download:
https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=6.0.0&arch=x64&rid=arch-x64
==> ERROR: A failure occurred in build().
    Aborting...
:: lttng-ust is now an orphan package
:: failed to build powershell package(s)

jogai commented on 2022-11-08 11:11 (UTC)

When I look in the distribution from git I see some more modules:

├── Microsoft.PowerShell.Archive
├── Microsoft.PowerShell.Host
├── Microsoft.PowerShell.Management
├── Microsoft.PowerShell.Security
├── Microsoft.PowerShell.Utility
├── PackageManagement
├── PowerShellGet
├── PSReadLine
└── ThreadJob

9 directories, 0 files

And it seems to me that these are necesarry because without it you cant install other modules or use starship prompt for example.

bastiendurel commented on 2022-10-26 16:04 (UTC) (edited on 2022-10-26 16:07 (UTC) by bastiendurel)

Hello. The current version does not build on my system (having dotnet-sdk-bin 6.0.10.sdk402-1) :

[...]
[100%] Built target gmock_main
~/.cache/yay/powershell/src/powershell
MSBuild version 17.3.2+561848881 for .NET
  Determining projects to restore...
  Restored /home/bastien/.cache/yay/powershell/src/powershell/src/Microsoft.PowerShell.Commands.Management/Microsoft.PowerShell.Commands.Management.csproj (in 3.15 sec).
  Restored /home/bastien/.cache/yay/powershell/src/powershell/src/System.Management.Automation/System.Management.Automation.csproj (in 131 ms).
  Restored /home/bastien/.cache/yay/powershell/src/powershell/src/Microsoft.PowerShell.Security/Microsoft.PowerShell.Security.csproj (in 84 ms).
  Restored /home/bastien/.cache/yay/powershell/src/powershell/src/Microsoft.PowerShell.ConsoleHost/Microsoft.PowerShell.ConsoleHost.csproj (in 102 ms).
  Restored /home/bastien/.cache/yay/powershell/src/powershell/src/powershell-unix/powershell-unix.csproj (in 6.16 sec).
  Restored /home/bastien/.cache/yay/powershell/src/powershell/src/Microsoft.PowerShell.Commands.Utility/Microsoft.PowerShell.Commands.Utility.csproj (in 6.25 sec).
  Restored /home/bastien/.cache/yay/powershell/src/powershell/src/Microsoft.PowerShell.SDK/Microsoft.PowerShell.SDK.csproj (in 6.26 sec).
[...]
/usr/share/dotnet/sdk/6.0.402/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(1114,5): warning NETSDK1179: One of '--self-contained' or '--no-self-contained' options are required when '--runtime' is used. [/home/bastien/.cache/yay/powershell/src/powershell/src/System.Management.Automation/System.Management.Automation.csproj]
/home/bastien/.cache/yay/powershell/src/powershell/src/System.Management.Automation/FormatAndOutput/common/Utilities/Mshexpression.cs(329,21): error IDE0074: Use compound assignment [/home/bastien/.cache/yay/powershell/src/powershell/src/System.Management.Automation/System.Management.Automation.csproj]
[...]
/home/bastien/.cache/yay/powershell/src/powershell/src/System.Management.Automation/engine/hostifaces/RunspacePoolInternal.cs(234,21): error IDE0074: Use compound assignment [/home/bastien/.cache/yay/powershell/src/powershell/src/System.Management.Automation/System.Management.Automation.csproj]
/home/bastien/.cache/yay/powershell/src/powershell/src/System.Management.Automation/engine/remoting/fanin/BaseTransportManager.cs(1292,21): error IDE0074: Use compound assignment [/home/bastien/.cache/yay/powershell/src/powershell/src/System.Management.Automation/System.Management.Automation.csproj]
==> ERROR: A failure occurred in build().
    Aborting...

Neither does it build in a clean container (it hangs at first Determining projects to restore..., not crash)

root     1033700  0.0  0.0  12484  5044 pts/0    S+   12:35   0:00  |                   \_ systemd-nspawn -D /var/lib/archlinux/.tmp3 --bind=/var/www/pacserve/corrin:/srv/http/corrin /check-and-build powershell
root     1033702  0.0  0.0   4412  3680 pts/0    Ss+  12:35   0:00  |                       \_ /bin/sh /check-and-build powershell
root     1033792  0.0  0.0  12864  6332 pts/0    S+   12:35   0:00  |                           \_ sudo -u bastien makepkg -s --noconfirm
bastien  1033793  0.0  0.0   7080  6192 pts/0    S+   12:35   0:00  |                           |   \_ /usr/bin/bash /usr/sbin/makepkg -s --noconfirm
bastien  1034855 99.9  1.4 4542688 115448 pts/0  Sl+  12:35 312:44  |                           |       \_ dotnet restore src/powershell-unix
bastien  1034877  0.0  1.1 4018524 94544 pts/0   Sl+  12:35   0:01  |                           |           \_ /usr/share/dotnet/dotnet /usr/share/dotnet/sdk/6.0.110/MSBuild.dll /nologo /nodemode:1 /nodeReuse:true /low:false
bastien  1034891  0.0  1.1 4018528 94964 pts/0   Sl+  12:35   0:01  |                           |           \_ /usr/share/dotnet/dotnet /usr/share/dotnet/sdk/6.0.110/MSBuild.dll /nologo /nodemode:1 /nodeReuse:true /low:false
bastien  1034912  0.0  1.1 4018524 94964 pts/0   Sl+  12:35   0:01  |                           |           \_ /usr/share/dotnet/dotnet /usr/share/dotnet/sdk/6.0.110/MSBuild.dll /nologo /nodemode:1 /nodeReuse:true /low:false
bastien  1034926  0.0  1.1 3944776 90468 pts/0   Sl+  12:35   0:01  |                           |           \_ /usr/share/dotnet/dotnet /usr/share/dotnet/sdk/6.0.110/MSBuild.dll /nologo /nodemode:1 /nodeReuse:true /low:false
bastien  1034497  0.0  0.0 151892   796 ?        Ss   12:35   0:00  |                           \_ gpg-agent --homedir /home/bastien/.gnupg --use-standard-socket --daemon

synthead commented on 2022-05-19 17:55 (UTC)

Also, can we download releases directly and omit the git build dependency? This will download less data, it'll fetch sources faster, and we'll be able to checksum it :)

https://github.com/PowerShell/PowerShell/releases/tag/v7.2.4

synthead commented on 2022-05-19 17:50 (UTC)

v7.2.4 is out :)

leewp14 commented on 2022-04-20 06:59 (UTC)

Unable to read data from the transport connection: Connection reset by peer.

If you get this error, can attempt to use powershell-bin. At least it works for me without having to mess with stuffs like the certs or whatsoever.