How to install Chocolatey on Windows 10.
This article explain how to install Chocolatey on Windows 10.
This article explain how to install Chocolatey on Windows 10.
Chocolatey is Package Management Tools that is like apt-get or yum on Linux.
The following lists are the table of contents about this article.
- Target audience
- How to install
- Confirm Chocolatey is installed
- Install something to example
- How to check installed packages
- How to uninstall package
- How to update package
- Reference articles
Target audience
- Those who want to use functions like apt-get or yum on Windows.
How to install
Execute the following command on Command Prompt as Administrator.
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
Or, execute the following command on PowerShell as Administrator.
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
Confirm Chocolatey is installed
After execute install, execute the following command on Command Prompt or PowerShell.
choco -v
If version information appears like the following information, install was a success.
C:\WINDOWS\system32>choco -v
0.10.15
Install something to example
Refer to the above article, let’s install 7zip as a test.
Execute the following command on Command Prompt or PowerShell as Administrator.
When installing it, Command Prompt and Powershell will ask you if you want to continue. Press “Y” to continue a process.
choco install 7zip
How to check installed packages
Execute the following command on Command Prompt or PowerShell.
choco list -localonly
How to uninstall package
Execute the following command on Command Prompt or PowerShell.
When uninstalling a package, you have to specify package that uninstalling.
And Command Prompt and Powershell will ask you if you want to continue. Press “Y” to continue a process.
choco install [package name]
For example, if uninstalling 7zip, execute the following command on Command Prompt or PowerShell.
choco uninstall 7zip
How to update package
If you want to update all packages, execute the following command,
choco update all
if you want to specify package, execute the following command on Command Prompt or PowerShell.
choco update [package name]