Skip to main content
Solved

December Chocolatey Month: Question of the day 14/12


mkevenaar
Forum|alt.badge.img+15

 

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:

 

Best answer by dloseke

Show content

c) Both options are correct

 

View original
Did this topic help you find an answer to your question?

11 comments

marcofabbri
Forum|alt.badge.img+13
  • On the path to Greatness
  • 990 comments
  • December 14, 2022
Show content

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

 


MarkBoothman
Forum|alt.badge.img+7
  • Veeam Legend
  • 197 comments
  • December 14, 2022
Show content

c) Both options are correct

 


dips
Forum|alt.badge.img+7
  • Veeam Legend
  • 808 comments
  • December 14, 2022
Show content

c) Both options are correct

 

Upgrade will install a package if it does not exist.

 


Iams3le
Forum|alt.badge.img+11
  • Veeam Legend
  • 1381 comments
  • December 14, 2022
Show content

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. 

 


Chris.Childerhose
Forum|alt.badge.img+21
  • Veeam Legend, Veeam Vanguard
  • 8440 comments
  • December 14, 2022
Show content

c) Both options are correct

 


HangTen416
Forum|alt.badge.img+11
  • Influencer
  • 196 comments
  • December 14, 2022
Show content

c) Both options are correct

 


jos.maliepaard
Forum|alt.badge.img+7
Show content

c) Both options are correct

 


regnor
Forum|alt.badge.img+14
  • Veeam MVP
  • 1352 comments
  • December 14, 2022
Show content

c) Both options are correct

 


dloseke
Forum|alt.badge.img+8
  • Veeam Vanguard
  • 1447 comments
  • Answer
  • December 14, 2022
Show content

c) Both options are correct

 


Geoff Burke
Forum|alt.badge.img+22
  • Veeam Legend, Veeam Vanguard
  • 1314 comments
  • December 15, 2022

Ah this one I actually know from practice :) 

 

Show content

C is the answer both!!

 


mkevenaar
Forum|alt.badge.img+15
  • Author
  • Veeam Vanguard
  • 149 comments
  • December 15, 2022

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