PowerShellGallery icon indicating copy to clipboard operation
PowerShellGallery copied to clipboard

Install-Module for various modules takes 10x-50x longer than expected

Open draganya opened this issue 2 years ago • 1 comments

Prerequisites

  • [X] Write a descriptive title.
  • [X] Make sure you are able to repro it on the latest version
  • [X] Search the existing issues.

Steps to reproduce

Both on local machine and on Azure hosted devops pipelines, Install-Module -Name az and other modules takes 10 to 50 times longer than usually. Az module takes 50-60 minutes.

Expected behavior

Install-Module -Name AZ installed in 3-5 minutes.

Actual behavior

Install-Module -Name AZ hangs for > 40-50 minutes

Error details

no error, just hang

Environment data

Name                           Value
----                           -----
PSVersion                      5.1.22621.1778
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.22621.1778
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Version

5.1.22621.1778

Visuals

No response

draganya avatar Jul 24 '23 09:07 draganya

This is not a problem with the PowerShell Gallery, rather the logic used to install stuff from it. It can be done in parallel.

Add your vote to this issue instead:

Here are some examples proving install from PowerShell Gallery can be done much faster:

  • https://github.com/JustinGrote/ModuleFast
  • https://github.com/PowerShell/PSResourceGet/issues/69#issuecomment-1772285059

o-l-a-v avatar Mar 24 '24 10:03 o-l-a-v