PackageManagement
本主題會顯示套件管理 Cmdlet 的說明主題。 此網站上的 Cmdlet 參考檔會記載模組的最新版本。
本檔涵蓋 PackageManagement 模組的 1.4.8.1 版。
重要
Windows PowerShell 5.1 隨附 1.0.0.1 版的 PackageManagement預先安裝。 此版本的 PowerShellGet 具有有限的功能,且不支援更新的 PowerShell 資源庫功能。 若要支援,您必須更新為最新版本。
重要
PackageManagement模組中包含的命令與 Visual Studio 套件管理員主控台中NuGet模組所提供的命令不同。 每個模組都有其他模組中無法使用的命令。 具有相同名稱的命令與其特定引數不同。 如需詳細資訊,請參閱 Visual Studio 套件管理員主控台的 PowerShell 參考 檔。
PackageManagement
Find-Package |
Finds software packages in available package sources. |
Find-PackageProvider |
Returns a list of Package Management package providers available for installation. |
Get-Package |
Returns a list of all software packages that were installed with PackageManagement. |
Get-PackageProvider |
Returns a list of package providers that are connected to Package Management. |
Get-PackageSource |
Gets a list of package sources that are registered for a package provider. |
Import-PackageProvider |
Adds Package Management package providers to the current session. |
Install-Package |
Installs one or more software packages. |
Install-PackageProvider |
Installs one or more Package Management package providers. |
Register-PackageSource |
Adds a package source for a specified package provider. |
Save-Package |
Saves packages to the local computer without installing them. |
Set-PackageSource |
Replaces a package source for a specified package provider. |
Uninstall-Package |
Uninstalls one or more software packages. |
Unregister-PackageSource |
Removes a registered package source. |