How can users install multiple packages using Chocolatey?

Viewed 2304

I know that the choco install command can take multiple arguments like:

choco install package1 package2 

This would install the packages one-by-one

I would like to know, however, if users can install multiple packages, specified in an external file, similar to the following:

choco install <external-file>
1 Answers

According to Chocolatey.org, you can use a simple Packages.config file.

More information here: https://chocolatey.org/docs/commandsinstall#packagesconfig

Quote from above link:

This is a list of packages in an xml manifest for Chocolatey to install. This is like the packages.config that NuGet uses except it also adds other options and switches. This can also be the path to the packages.config file if it is not in the current working directory.

Related