Package Details: powershell-bin 7.5.1-1

Git Clone URL: https://aur.archlinux.org/powershell-bin.git (read-only, click to copy)
Package Base: powershell-bin
Description: A cross-platform automation and configuration tool/framework (binary package)
Upstream URL: https://github.com/Powershell/Powershell
Licenses: MIT
Conflicts: powershell
Provides: powershell
Submitter: thamerla
Maintainer: kylesferrazza (carsme)
Last Packager: carsme
Votes: 67
Popularity: 0.85
First Submitted: 2017-05-07 11:30 (UTC)
Last Updated: 2025-04-26 06:53 (UTC)

Dependencies (3)

Required by (9)

Sources (3)

Latest Comments

« First ‹ Previous 1 2 3 4 Next › Last »

kgizdov commented on 2020-10-23 12:47 (UTC) (edited on 2020-10-23 12:52 (UTC) by kgizdov)

package seems to depend on curl and the LICENSE is not placed in correct dir. There are also two broken symlinks, which can be all fixed by:

diff --git a/PKGBUILD b/PKGBUILD
index 009f8f2..1cdd872 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,11 +4,12 @@
 pkgname=powershell-bin
 _pkgver=7.0.3
 pkgver=${_pkgver/-/.}
-pkgrel=1
+pkgrel=2
 pkgdesc='A cross-platform automation and configuration tool/framework (binary package)'
 arch=('x86_64')
+license=('MIT')
 url='https://github.com/Powershell/Powershell'
-depends=('krb5' 'gcc-libs' 'glibc' 'lttng-ust' 'zlib' 'openssl-1.0' 'icu')
+depends=('krb5' 'curl' 'gcc-libs' 'glibc' 'lttng-ust' 'zlib' 'openssl-1.0' 'icu')
 provides=('powershell')
 conflicts=('powershell')
 options=(staticlibs !strip)
@@ -26,5 +27,12 @@ package() {
   cp -r usr/local/share usr
   rm -rf usr/local

+  # fix symlinks
+  ln -sf /usr/lib/libcrypto.so.1.0.0 opt/microsoft/powershell/7/libcrypto.so.1.0.0
+  ln -sf /usr/lib/libssl.so.1.0.0 opt/microsoft/powershell/7/libssl.so.1.0.0
+
+  install -d "usr/share/licenses/${pkgname}"
+  ln -s /opt/microsoft/powershell/7/LICENSE.txt "usr/share/licenses/${pkgname}/LICENSE"
+
   chmod 755 "opt/microsoft/powershell/${_pkgver:0:1}/pwsh"
 }

ohkeenan commented on 2020-08-30 20:10 (UTC)

Anyone else having an issue with pwsh taking > 60 seconds to load?

Once it's done whatever initialization stuff it does it runs fine but it takes around 60 seconds to get from:

PowerShell 7.0.3
Copyright (c) Microsoft Corporation. All rights reserved.

https://aka.ms/powershell
Type 'help' to get help.`

To:

PS /home/user>

I read on the github issues some people say it's checking for updates and you can disable that with an env variable but it sounds like it's unsupported on linux thus far. Or maybe it's just me?

kylesferrazza commented on 2020-06-12 15:31 (UTC)

Sorry for the delay, updated.

jthompson333 commented on 2020-06-08 15:18 (UTC)

Are there any plans to get this on the current powershell 7 stable? I might be able to help, however, I confess I haven't done an aur package in a long time...

cfinnberg commented on 2020-06-06 19:43 (UTC)

This has been flagged out-of-date three weeks ago. Is the maintainer still around?

skinnymatt commented on 2020-03-13 12:13 (UTC)

This worked for me, using the .tar.gz source, rather than the .deb package:

package() {
  mkdir -p ${pkgdir}/usr/local/lib/powershell
  cp -r ${srcdir}/* ${pkgdir}/usr/local/lib/powershell

  mkdir -p ${pkgdir}/usr/local/bin
  ln -s /usr/local/lib/powershell/pwsh ${pkgdir}/usr/local/bin/pwsh
}

ImNtReal commented on 2020-03-11 20:00 (UTC)

This worked for me for 7.0.0: https://pastebin.com/HXw9nLrq

agowa commented on 2020-03-07 23:45 (UTC) (edited on 2020-03-07 23:46 (UTC) by agowa)

For powershell 7:

  • changed dependencies

  • use _pkgver var for detecting major version

  • use sha256 for validation, as that is also printed on the releases page on github.

diff --git a/PKGBUILD b/PKGBUILD
index fd1524c..156c217 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,19 +2,19 @@
 # Contributor: Tomasz Hamerla <tomasz.hamerla@outlook.com>

 pkgname=powershell-bin
-_pkgver=6.2.4
+_pkgver=7.0.0
 pkgver=${_pkgver/-/.}
 pkgrel=1
 pkgdesc='A cross-platform automation and configuration tool/framework (binary package)'
 arch=('x86_64')
 url='https://github.com/Powershell/Powershell'
-depends=('libunwind' 'icu' 'openssl-1.0')
+depends=('krb5' 'gcc-libs' 'glibc' 'lttng-ust' 'zlib' 'openssl-1.0' 'icu')
 provides=('powershell')
 conflicts=('powershell')
 options=(staticlibs !strip)
 install=powershell.install
-md5sums=('1fef408b721bec199952fb6d2608425a')
-source=("https://github.com/PowerShell/PowerShell/releases/download/v${_pkgver}/powershell_${_pkgver}-1.ubuntu.16.04_amd64.deb")
+sha256sums=('A28C95B376E6DD7EF0BF523B6BD329485948A53E27FD2E8B3DDED6981471214C')
+source=("https://github.com/PowerShell/PowerShell/releases/download/v${_pkgver}/powershell_${_pkgver}-1.ubuntu.18.04_amd64.deb")

 package() {
   bsdtar xf data.tar.gz
@@ -26,5 +26,5 @@ package() {
   cp -r usr/local/share usr
   rm -rf usr/local

-  chmod 755 "opt/microsoft/powershell/6/pwsh"
+  chmod 755 "opt/microsoft/powershell/${_pkgver:0:1}/pwsh"
 }