Replies: 1 comment
-
There is a hidden xml file created in each of the installed module directories created when the module is installed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I wonder how Get-InstalledPSResource detects packages that were installed from a repository when browsing $env:PSModulePath.
The cmdlet returns a PSResourceInfo object with a RepositorySourceLocation property that's set to https://www.powershellgallery.com/api/v2 in my case.
Get-Module returns a similar PSModuleInfo object with the same property.
On my computer, RepositorySourceLocation is $null for the psreadline module included in PowerShell.
Is RepositorySourceLocation the criterion to decide whether a package was installed from a repository?
Beta Was this translation helpful? Give feedback.
All reactions