Open ipetko96 opened 4 years ago
I have similar issue:
PS C:\WINDOWS\system32> Get-PSRepository
Name InstallationPolicy SourceLocation
---- ------------------ --------------
PSGallery Untrusted https://www.powershellgallery.com/api/v2
BaGet Trusted http://192.168.100.1:5000/v3/index.json
PS C:\WINDOWS\system32> Find-Module -Repository baget
Version Name Repository Description
------- ---- ---------- -----------
2.2.0.2 PSWindowsUpdate BaGet This module contain cmdlets to manage Windows Update Client.
PS C:\WINDOWS\system32> Install-Module -Name PSWindowsUpdate -Repository baget
PackageManagement\Install-Package : No match was found for the specified search criteria and module name 'PSWindowsUpdate'. Try Get-PSRepository to see all available registered module repositories.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1809 char:21
+ ... $null = PackageManagement\Install-Package @PSBoundParameters
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Exception
+ FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
If I list all packages, everything work as expected. But when I try to search for the exact package by it's name, I always end up with the error.
I am using release version
v0.3.0-preview4
of BaGet. I updated all PackageManagement tools (NuGet, PowerShellGet) to the most recent version in PowerShell. Here is the transcript from PowerShellExpected behavior
I should get only the package with the searched name.