Skip to main content

 

December Chocolatey Month banner; Alfred, a cat and community mascotte, is wearing a Christmas hat and licking a Chocolate bar with the Chocolatey logo on it. On the background pine trees are draw, a green heart and some festive swirls.

 

What command(s) could you use to install a Chocolatey package?

 

a) choco install <packagename>
b) choco upgrade <packagename>
c) Both options are correct

 

Submissions should be in a spoiler and accepted until December 15th 09:45 CET

Screenshot of the Comment box where you can find the spoiler option. Last icon on the right (More) and then lowest option (Spoiler)

 

More info and rules:

 

C is the right one.
As said in manual “If you do not have a package installed, upgrade will install it.”
https://docs.chocolatey.org/en-us/choco/commands/upgrade

 


c) Both options are correct

 


c) Both options are correct

 

Upgrade will install a package if it does not exist.

 


A) Let me be the outlier here. Technically, both can do the job. But remember the question says to install. The upgrade command will only install when the package is not previously installed. 

 


c) Both options are correct

 


c) Both options are correct

 


c) Both options are correct

 


c) Both options are correct

 


c) Both options are correct

 


Ah this one I actually know from practice :) 

 

C is the answer both!!

 


c) Is the correct answer. By default upgrade will install a package if it's not installed. This can be disabled with the feature skipPackageUpgradesWhenNotInstalled 
See: https://docs.chocolatey.org/en-us/configuration#flow-control / https://docs.chocolatey.org/en-us/choco/commands/feature


Comment