From f22c0a1c8e2370bd0a770925a06823ffeabf5244 Mon Sep 17 00:00:00 2001 From: "Mike F. Robbins" Date: Wed, 6 Sep 2023 08:38:22 -0500 Subject: [PATCH 1/2] Updated module browser quickfilter azps version (#10389) Co-authored-by: Mike F. Robbins --- reference/module/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/module/index.md b/reference/module/index.md index 13698f73a246..9fb017fdc8d5 100644 --- a/reference/module/index.md +++ b/reference/module/index.md @@ -12,7 +12,7 @@ ms.manager: sewhee ms.product: powershell ms.topic: landing-page quickFilterColumn1: powershell-7.2,windowsserver2022-ps -quickFilterColumn2: azps-10.2.0,sqlserver-ps +quickFilterColumn2: azps-10.3.0,sqlserver-ps quickFilterColumn3: graph-powershell-1.0,systemcenter-ps-2022 title: PowerShell Module Browser --- From a52950ca902b5b4ab69b93db7cf09b3d29cbd3d6 Mon Sep 17 00:00:00 2001 From: Sean Wheeler Date: Wed, 6 Sep 2023 13:58:10 -0500 Subject: [PATCH 2/2] Update Pi install script (#10392) --- .../install/community-support.md | 22 +++++++++++++------ 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/reference/docs-conceptual/install/community-support.md b/reference/docs-conceptual/install/community-support.md index 35d6f63c3419..9686db88f7dd 100644 --- a/reference/docs-conceptual/install/community-support.md +++ b/reference/docs-conceptual/install/community-support.md @@ -1,6 +1,6 @@ --- description: PowerShell may run on Linux distributions that aren't officially supported by Microsoft. -ms.date: 06/28/2023 +ms.date: 09/06/2023 title: Community support for PowerShell on Linux --- # Community support for PowerShell on Linux @@ -77,11 +77,16 @@ apt -y remove powershell Download the tar.gz package from the [releases][12] page onto your Raspberry Pi computer. The links to the current versions are: -- PowerShell 7.3.6 - `https://github.com/PowerShell/PowerShell/releases/download/v7.3.6/powershell-7.3.6-linux-arm32.tar.gz` -- PowerShell 7.2.13 - `https://github.com/PowerShell/PowerShell/releases/download/v7.2.13/powershell-7.2.13-linux-arm32.tar.gz` +- PowerShell 7.3.6 - latest stable release + - `https://github.com/PowerShell/PowerShell/releases/download/v7.3.6/powershell-7.3.6-linux-arm32.tar.gz` + - `https://github.com/PowerShell/PowerShell/releases/download/v7.3.6/powershell-7.3.6-linux-arm64.tar.gz` +- PowerShell 7.2.13 - LTS release + - `https://github.com/PowerShell/PowerShell/releases/download/v7.2.13/powershell-7.2.13-linux-arm32.tar.gz` + - `https://github.com/PowerShell/PowerShell/releases/download/v7.2.13/powershell-7.2.13-linux-arm64.tar.gz` -Use the following shell commands to download and install the package. Change the URL to match the -PowerShell version that you want to install. +Use the following shell commands to download and install the package. This script detects whether +you are running a 32 or 64-bit OS and installs the latest stable version of PowerShell for that +processor type. ```sh ################################### @@ -97,13 +102,16 @@ sudo apt-get install libssl1.1 libunwind8 -y # Download and extract PowerShell # Grab the latest tar.gz -wget https://github.com/PowerShell/PowerShell/releases/download/v7.3.6/powershell-7.3.6-linux-arm32.tar.gz +bits=$(getconf LONG_BIT) +release=$(curl -sL https://api.github.com/repos/PowerShell/PowerShell/releases/latest) +package=$(echo $release | jq -r ".assets[].browser_download_url" | grep "linux-arm${bits}.tar.gz") +wget $package # Make folder to put powershell mkdir ~/powershell # Unpack the tar.gz file -tar -xvf ./powershell-7.3.6-linux-arm32.tar.gz -C ~/powershell +tar -xvf "./${package##*/}" -C ~/powershell # Start PowerShell ~/powershell/pwsh