
上QQ阅读APP看书,第一时间看更新
Installing Chocolatey on Windows
To install the Chocolatey package manager on Windows, please follow the instructions at https://chocolatey.org/ or just execute the following command in a PowerShell Terminal that you have run as administrator:
PS> Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
Once Chocolatey is installed, test it with the command choco without additional parameters. You should see output similar to the following:
PS> choco
Chocolatey v0.10.3
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 it.