It would be nice if chocolatey could notify the user about new available updates ("outdated packages").
The user could create a scheduled task (dayly, weekly, ..) that executes something like this.
choco outdated -notification
Chocolatey could then create a notification in the action center (Win10) or send a mail to the user.
Clicking the notofication could even execute the "upgrade all" command or the GUI.
Thanks for creating that!
In the meanwhile you can schedule this script via the Task Scheduler:
$ErrorActionPreference = "Stop"
Import-Module -Name BurntToast
$outdated = (choco outdated | Select-Object -Skip 4 | Select-Object -SkipLast 2 | Select-String '^([^|]+)|.*$').Matches | ForEach-Object {$_.Value}
$pretty = ($outdated -join ', ')
If ($outdated.count -gt 0) {
New-BurntToastNotification -Text "Outdated chocolatey packages", "$pretty"
}
Thanks for the script, but I've noticed that Chocolatey sometimes appends ad to the output of outdated command
Enjoy using Chocolatey? Explore more amazing features to take your
experience to the next level at
https://chocolatey.org/compare
which breaks the notification text. If anybody is interested I've prepared fixed version here https://github.com/davidjirovec/outdated-choco/blob/master/outdated-choco.ps1
Add -r to the end of choco outdated and it should not have those extra messages from time to time. We've made sure with this in 0.10.8 or vNext.
Ok, I did not know this, thanks :)
Most helpful comment
In the meanwhile you can schedule this script via the Task Scheduler: