Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I automatically keep all locally installed Chocolatey packages up to date?

Tags:

chocolatey

There is Ketarin to update Chocolatey packages and push them to chocolatey.org automatically, but how do I automatically update all locally installed Chocolatey packages?

like image 260
030 Avatar asked Jul 04 '14 18:07

030


People also ask

Does Chocolatey update automatically?

Automatic Updater (AU)The Chocolatey Automatic Package Updater Module is a PowerShell module which implements functions that can be used to automate Chocolatey package updates.

How do I update all packages in Chocolatey?

To upgrade chocolatey, open command prompt as administrator and run choco upgrade chocolatey . c:\> choco upgrade chocolatey Chocolatey v0. 10.8 Upgrading the following packages: chocolatey By upgrading you accept licenses for the packages.

How do I update apps in Chocolatey?

Again, you need PowerShell open as Administrator. Then you can run the command choco upgrade malwarebytes. That will make Chocolatey go out and see if there's an update and then update it.

Where are Chocolatey packages stored?

Chocolatey packages are installed to ChocolateyInstall\lib , but the software could go to various locations, depending on how the package maintainer created the package. Some packages are installed under ChocolateyInstall\lib , others - especially packages that are based on Windows installers (.


2 Answers

Try choco upgrade all -y (or cup all -y). One can create a scheduled task to run in the evenings that would do this.

like image 88
ferventcoder Avatar answered Sep 27 '22 23:09

ferventcoder


Update - Sept 2018

As well as choco-upgrade-all-at-startup to upgrade all packages on startup (mentioned above), there is also now a Chocolatey package, choco-upgrade-all-at, that can be used to check/upgrade all packages as often (for example, daily, weekly..) as you require, at a time that suits :-)

A downside of using the public repository of course is that you are dependent on other people to maintain the packages largely out of the goodness of their hearts, so you should probably still run something like SUMo once in a while to keep an eye on things if you are using this to keep your own machines up-to-date. Organisations are strongly encouraged to host and maintain their own repository rather than use the public one for this reason.

like image 45
Sorren69 Avatar answered Sep 28 '22 00:09

Sorren69