Learn Docker:Fundamentals of Docker 19.x
上QQ阅读APP看书,第一时间看更新

Installing Chocolatey on Windows

Chocolatey is a popular package manager for Windows, built on PowerShell. To install the Chocolatey package manager, please follow the instructions at https://chocolatey.org/ or open a new PowerShell window in admin mode and execute the following command:

PS> Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
It is important to run the preceding command as an administrator, otherwise, the installation will not succeed.
  1. Once Chocolatey is installed, test it with the choco --version command. You should see output similar to the following:
PS> choco --version
0.10.15
  1. To install an application such as the Vi editor, use the following command:
PS> choco install -y vim

The -y parameter makes sure that the installation happens without asking for reconfirmation.

Please note that once Chocolatey has installed an application, you need to open a new PowerShell window to use that application.