Skip to main content
Solved

December Chocolatey Month: Question of the day 14/12

  • December 14, 2022
  • 11 comments
  • 78 views

mkevenaar
Forum|alt.badge.img+16

 

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

c) Both options are correct

 

11 comments

marcofabbri
Forum|alt.badge.img+12
  • On the path to Greatness
  • December 14, 2022

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
  • Influencer
  • December 14, 2022

c) Both options are correct

 


dips
Forum|alt.badge.img+7
  • On the path to Greatness
  • December 14, 2022

c) Both options are correct

 

Upgrade will install a package if it does not exist.

 


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

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
  • December 14, 2022

c) Both options are correct

 


HangTen416
Forum|alt.badge.img+11
  • Influencer
  • December 14, 2022

c) Both options are correct

 


jos.maliepaard
Forum|alt.badge.img+7
  • Veeam Vanguard
  • December 14, 2022

c) Both options are correct

 


regnor
Forum|alt.badge.img+14
  • Veeam MVP
  • December 14, 2022

c) Both options are correct

 


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

c) Both options are correct

 


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

Ah this one I actually know from practice :) 

 

C is the answer both!!

 


mkevenaar
Forum|alt.badge.img+16
  • Author
  • Veeam Vanguard
  • 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