Module and Package Commands
(A module is one type of "package" — a package which exports a bunch of cmdlets.)
Get-PackageProvider
Lists all package providers. Currently: Chocolatey, msi, msu, NuGet, PowerShellGet, ProgramsInstall-PackageProvider -Name Chocolatey
Installs the named package provider.Find-Package
UsePackageManagement
to search all package providers for a package.Find-Module
Use thePowershellGet
package provider to search for a module (includes looking at the PsGallery.Find-Script
Use thePowershellGet
package provider to search for a script (includes looking at the PsGallery.Install-Module
Installs a module but does not load it. Requires elevation.Import-Module
Loads a module that is already installed or available on your machine.get-module -listAvailable
lists installed (i.e. available) modules. They may not have been imported (i.e. loaded)get-module
lists installed (i.e. available) and imported (i.e. loaded) modules.
todo
How to add a path such that it shows up in $env:PSModulePath