How to get a list of packages from one machine and install in another with Chocolatey?

前端 未结 6 2029
迷失自我
迷失自我 2021-01-31 08:23

Calling clist -l gives me a list of packages with versions:

7zip.install 16.04
ccleaner 5.28.6005
ConEmu 17.3.16.0
...

How do I ge

6条回答
  •  迷失自我
    2021-01-31 09:21

    If you have a look at the help information for the choco install command (you can do this using chcco install -h, you will find the following usage:

    cinst  [ ] []
    

    As you will see, it is possible to pass a packages.config file, which would contain all the packages that you want to install. The format of this packages.config file is very simple and looks like the following:

    
    
      
      
      
      
    
    

    Once you have this file, installing all the packages again on another machine is a simple one line command.

    A simple way to generate this packages.config file would be to install ChocolateyGUI (choco install chocolateygui), which includes an option to export the currently installed list of applications.

提交回复
热议问题