PowerTip: Update Module from PowerShell Gallery

Doctor Scripto

Summary: Boe Prox shows how to update a module from the Windows PowerShell Gallery.

Hey, Scripting Guy! Question How can I update a module from the Windows PowerShell Gallery?

Hey, Scripting Guy! Answer Run the following command to check for an update to the module and install the update if one is found:

Update-Module –Name PoshRSJob –Verbose

VERBOSE: Checking for updates for module ‘PoshRSJob’.

VERBOSE: The specified Location is ‘https://www.powershellgallery.com/api/v2/’ and PackageManagementProvider
is ‘NuGet’.

VERBOSE: Getting the provider object for the PackageManagement Provider ‘NuGet’.

VERBOSE: The specified Location is ‘https://www.powershellgallery.com/api/v2/’ and PackageManagementProvider
is ‘NuGet’.

VERBOSE: Performing the operation “Update-Module” on target “Version ‘1.5.1.0’ of module ‘PoshRSJob’, updating
to version ‘1.5.5.0’”.

VERBOSE: The specified module will be installed in ‘C:\Program Files\WindowsPowerShell\Modules’.

VERBOSE: An update for the module ‘PoshRSJob’ was found with version ‘1.5.5.0’.

VERBOSE: The specified Location is ‘NuGet’ and PackageManagementProvider is ‘NuGet’.

VERBOSE: Downloading module ‘PoshRSJob’ with version ‘1.5.5.0’ from the repository

‘https://www.powershellgallery.com/api/v2/’.

VERBOSE: NuGet: Installing ‘PoshRSJob 1.5.5.0’.

VERBOSE: NuGet: Successfully installed ‘PoshRSJob 1.5.5.0’.

VERBOSE: Module ‘PoshRSJob’ was installed successfully.

0 comments

Discussion is closed.

Feedback usabilla icon