external help file | online version | schema |
---|---|---|
chocolatey-help.xml |
2.0.0 |
This function installs packages enumerated in configuration files.
Install-CommonPackages [-CfgFile] <String> [<CommonParameters>]
This function in details:
- takes a list of packages from configuration file,
- skips packages marked as disabled,
- installs each package left,
- uses chocolatey package manager.
PS C:\> Install-CommonPackages cfg.json
{
"chocolatey" : {
"packages" : [
{ "id" : "git-credential-manager-for-windows" },
{
"id" : "inconsolata",
"disabled": true
}
]
}
}
Configuration file.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
https://github.com/a4099181/vagrant-provvin/blob/master/docs/Install-CommonPackages.md
https://github.com/a4099181/vagrant-provvin/blob/master/modules/chocolatey.psm1