Package manager for Windows. Chocolatey
2021-01-18
·
2 min read
The most popular package manager for Windows is Chocolatey.
Table of Contents
1 Resources
- Homepage: https://chocolatey.org/
- Repository: https://github.com/chocolatey/choco
2 Installing Chocolatey
- The installation procedure is described on the page https://chocolatey.org/install.
- Installation is performed in PowerShell.
- PowerShell must be run with administrator rights.
- The easiest way to launch it is with the key combination
Win+X
. - The installation command is located on the page https://chocolatey.org/install.
3 Additional settings
- To install without asking for confirmation, you can configure the following:
choco feature enable -n=allowGlobalConfirmation
- You can re-enable the confirmation request with the command:
choco feature disable -n=allowGlobalConfirmation
4 Packages
- The list of packages is on the page https://chocolatey.org/packages.
- List of packages:
choco list
5 Working with software
5.1 Service functions
- Information on command line switches:
choco --help
- List of packages in the repository:
choco list
- List of installed packages:
choco list --local-only
5.2 Installing a package
- To install a package, run the command:
choco install package_name
- To install without asking for confirmation, add the
y
switch:
choco install package_name -y
5.3 Removing a package
- To remove a package, run the command:
choco uninstall package_name
5.4 Updating packages
- To update a package, run the command:
choco upgrade package_name
- To update all installed packages, run the command:
choco upgrade all -y
5.5 Updating packages automatically
- To update packages automatically, use the
choco-upgrade-all-at
package:
choco install choco-upgrade-all-at
- You can update using the command:
choco-upgrade-all
- To set the update time, you need to install with certain parameters:
- if you do not specify any parameters,
choco-upgrade-all-at
will run by default every day at 2 am and stop at 4 am; - run
choco upgrade all -y
daily (by default) at 23:00 and abort at 1:00 (by defaultABORTTIME
is +2 hours):
choco install choco-upgrade-all-at --params "'/TIME:23:00'"
- run
choco upgrade all -y
daily at 4:00 and abort at 8:00:
choco install choco-upgrade-all-at --params "'/DAILY:yes /TIME:04:00 /ABORTTIME:08:00'"
- run
choco upgrade all -y
every Sunday at 1:00 and abort at 3:00:
choco install choco-upgrade-all-at --params "'/WEEKLY:yes /DAY:SUN /TIME:01:00'"
- You can edit the parameters by running the command:
choco-upgrade-all -EditConfig