This is a small tutorial on how to upgrade PowershellGet to the latest version. The easiest way to upgrade your PowershellGet module is to run the following command:
Find-Module powershellget | Install-Module
After that, check your installed versions:
Get-Module powershellget -ListAvailable Get-Module packagemanagement -ListAvailable
If you have multiple versions, the best thing todo is to remove the older versions. To remove the older versions, do the following:
- Browse to C:\Program Files\WindowsPowerShell\Modules\
- Go into C:\Program Files\WindowsPowerShell\Modules\PowershellGet folder, and delete the older version folders
- Then do the same for C:\Program Files\WindowsPowerShell\Modules\PackageManagement
Now run the Get-Module commands again and see if the old versions are gone.
Get-Module powershellget -ListAvailable Get-Module packagemanagement -ListAvailable