I have a list of chocolatey packages generated from the command below;
choco list --local-only
Is there a command line to install packages from the list onto a new machine?
I am using Windows 10.
I have a list of chocolatey packages generated from the command below;
choco list --local-only
Is there a command line to install packages from the list onto a new machine?
I am using Windows 10.
choco list --idonly --localonly --limitoutput >chocolist.txt
Copy the file "chocolist.txt" to machine B.
On machine B, start a PowerShell cmd window in Administrator mode.
Install the list of package on machine B:
Get-Content chocolist.txt | foreach {choco upgrade -y --limitoutput $_}