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?
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.
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.
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.
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 (.
Try choco upgrade all -y
(or cup all -y
). One can create a scheduled task to run in the evenings that would do this.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With