Skip to content

PSGalleryHelper

Description

PowerShell module for managing and synchronizing PowerShell modules in local and online PSGallery repositories.

GitLab Repository

Features

  • Install and uninstall local PSGallery repositories.
  • Add modules from the online PSGallery to a local PSGallery.
  • Update and synchronize modules between local and online PSGallery repositories.
  • Remove older versions of modules from repositories.
  • Replace installed modules from the online PSGallery with modules from the local PSGallery.
  • Update PowerShell modules on remote computers.
  • Customize repository paths, URIs, and email notifications for updates.

Functions

Repository Management

  • Install-PSGRepository: Install a local PSGallery repository.
  • Uninstall-PSGRepository: Uninstall a local PSGallery repository.

Module Management

  • Add-PSGModuleFromOnlineToLocalGallery: Add modules from the online PSGallery to the local PSGallery.
  • Install-PSGModule: Install modules from the local PSGallery.
  • Remove-PSGModuleOlderVersions: Remove older versions of modules from repositories.
  • Switch-PSGModuleFromOnlineWithLocalGallery: Replace installed modules from the online PSGallery with modules from the local PSGallery.
  • Update-PSGModule: Update modules in local or online PSGallery repositories.

Remote Updates

  • Invoke-RemoteModuleUpdate: Update PowerShell modules on remote computers.

Synchronization

  • Update-PSGalleryLocal: Synchronize and update modules in a local PSGallery repository.

Changelog

  • 16/11/2018: Initial release of the PSGalleryHelper module.
  • 2020: Added functions for repository and module management.
  • 2025: Enhanced synchronization and remote update features.