Choco Install Y

0507

I used to be able to call cup all and have my applications update. Now, it asks for yes to ensure that I want to install the selected package. Is there a way I can have everything auto update without constantly typing yes for every update?

Dec 12, 2018 - sudo apt-get update && sudo apt-get install -y apt-transport-https curl -s. Package manager, you can install kubectl with Chocolatey. Sep 21, 2018 - Package name, Install command, Site. 7-Zip, choco install 7zip -y, CCleaner, choco install ccleaner -y.

Josue EspinosaJosue Espinosa

2 Answers

tl;dr - Yes, completely possible. Use cup all -y

Also check out the help menus now - choco -h, choco install -h

Longer answer, we've moved a little closer towards other package managers for security reasons, where by default we stop and confirm if you are okay with the state change. I always communicate changes in the release notes / changelog, which also end up in the nuspec file, so I highly recommend folks scan at least one of those to see anything tagged breaking changes. Always scan from your current version up to the one you are upgrading to so that you catch all changes.

The one that is the most important right now is the x.y.z release (in this case 0.9.9), once we reach v1 we will be fully SemVer compliant and breaking changes will constitute a major version bump (we're still semver in a less than v1), so you can scan breaking changes and major new features in an x release, new compatible features in a .y release, and .z releases will only contain compatible fixes for the current release.

0.9.9 introduced a new compiled client that was/is a total rewrite. 0.9.10 will have complete feature parity with the older client - see FeatureParity. Why the rewrite? For a more maintainable, faster client that can run on mono now, so you are not completely tied to Windows. We've started adding support for other install providers (like Scriptcs).

The relevant bits of the release notes for your question:

  • [Security] Prompt for confirmation: For security reasons, we now stop for confirmation before changing the state of the system on most commands. You can pass -y to confirm any prompts or set a value in the config that will globally confirm and behave like older versions of Chocolatey (allowGlobalConfirmation, see choco feature -h for how to enable).
ferventcoderferventcoder
Choco install mysql

As Rob points out, -y will skip the prompts for a given command.

If you'd rather not be bothered with confirmation prompts at all, you can set the option globally.

The following enables allowGlobalConfirmation, which will install or update without confirmation prompts.

If you ever want to turn the prompts back on, run the same command with disable:

This can be useful for unattended scripts without affecting the future state of the prompts.

NOTE: The syntax has recently changed (July 2016) and now requires an equals sign before allowGlobalConfirmation instead of a dash. Thanks for the heads up, @dragon788.

Jon CrowellJon Crowell

Not the answer you're looking for? Browse other questions tagged chocolatey or ask your own question.

Join GitHub today

GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.

Sign up New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Choco Install Y

Comments

commented Jan 9, 2018

What You Are Seeing?

During the installation of some packages with following command:

The process seems to wait for user input or maybe window focus? I am running on a fresh Windows 10 installation and had this behaviour quite a few times lately. The installation seems to sit there and wait for something to happen and it unfreezes only when I press enter on the shell. There is no prompt written.

What is Expected?

The installation should continue until the end of execution without having the user to input anything.

How Did You Get This To Happen? (Steps to Reproduce)

Install windows 10, install chocolatey with powershell, close powershell, open again (as administrator) and run the following command:

Output Log

It's not very helpful to paste the whole output for this above command, but I had it stop before these two lines when it was installing flashplayerplugin:

Madhurey (Tamil: மதுர) is a 2004 Tamil action film directed by Ramana Madhesh. It starred Vijay, Sonia Agarwal, and Rakshitha in the lead roles while Vadivelu, Pasupathy, Seetha, and Tejashree play supporting roles. The movie released to mixed reviews. It was later dubbed in Hindi as Sarfarosh Dobaara. Pandu opens the story of Madurey being the district collector of Madurai. Jump to Television - Senthil played the lead character in the successful television serial named Madurai in STAR Vijay telecasted from 2007 to 2009. Vijay tv serial in hot star. Jump to Television - Serials. Thulasidhalam, Surya TV, Malayalam, Off-Air. Madhurai, Meenatchi, STAR Vijay, Tamil, Off-Air, Tamil Debut. Saravanan Meenatchi is an 2011-2018 Indian Tamil-language television series broadcast on STAR Vijay. This serial is directed by Azhagar and the story, screenplay, and dialogues are by Francis Kathiravan. The name of the serial is derived from the names of the characters of the serial 'Madurai' starring the same lead.

It continued after focusing on the window and pressing enter. Maybe I'm not patient and I did not wait for hours, but it really seem to lock and wait for a user input sometimes.

Version informations

✌️

commented Jan 11, 2018
edited

Please submit the detailed log of this from chocolatey.log (it will start at about and you will see the command you run. Copy from there to the next and submit that).

That will help us out.

Choco Install Maven

commented Jan 11, 2018

I will post a log here next time I work on a windows system, but I had this problem a few times in the past too and on different systems for different packages.

commented Jan 12, 2018

I take it you already destroyed the system where you saw this then? The log file would still be there otherwise.

commented Jan 12, 2018

ah indeed this time it wasn’t on a vm, it’s at the office, I’ll post the log tomorrow morning. :)

commented Jan 16, 2018

@GabLeRoux if you have that log file, that would be most helpful.

commented Jan 16, 2019
edited

Same issue on my machine. Windows 10, PowerShell. My log is pasted below. It did not freeze for everything, it only froze at the following points:

  • Downloading JDK from http://download.oracle.com/otn-pub/java/jdk/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-windows-x64.exe
  • Installing jdk8..

Rather than enter, I pressed ctl+c to get it moving along.

commented Jan 18, 2019
edited

Install

Those two points are where it takes forever to do something. If you lift the console up for any reason or click on it, the console stops logging until you hit enter (or possibly Ctrl+C). This is a 'feature' of the console window.

It's not actually frozen in that choco is waiting, it's that the console isn't outputting the log until you do something.

commented Mar 29, 2019

Choco Install Yum

Experienced the same thing just now on my vm. The powershell console continued after i pressed 'enter', the logging to programdata was also paused till I pressed a key.

commented Apr 8, 2019

@verzada this sounds like its due to the following: https://serverfault.com/questions/204150/sometimes-powershell-stops-sending-output-until-i-press-enter-why

Powershell pauses output completely if you click into it, for whatever reason. Was happenign to me to. Once I adjusted the settings mentioned in that post, it was fine.

commented May 10, 2019
edited

@ndom91 output meaning also log output? That just sounds weird.

Choco Install Mysql

commented May 17, 2019

Not sure if related..
https://stackoverflow.com/questions/56077129/very-slow-run-on-docker-on-windows-containers

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment
This entry was posted on 5/7/2019.