Byobu shows incorrect number of updates available on amazon linux
Bug #1463847 reported by
Stuart Page
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
byobu |
Won't Fix
|
Low
|
Unassigned |
Bug Description
The indicator showing the number of updates available appears to never update unless I reboot as shown in the attached image. (Using byobu tmux)
Distro: Amazon Linux.
To post a comment you must log in.
Thanks for the bug, and especially the screenshot.
So you're evidently running an Amazon Linux instance, which I think uses rpm-based packages, right?
If so, here's how Byobu is counting the number of updates available in /usr/lib/ byobu/updates_ available:
yum list updates -q | grep -vc "Updated Packages"
Now, that uses a cached list of packages and versions. It's a very expensive, network intensive operation to update those package lists. Byobu can't, and won't be able to do that automatically for you.
You could put something like this in a cronjob (perhaps hourly?):
yum check-update
Or you could ask your OS vendor to update your package lists more frequently.
Cheers!
Dustin