On the Distro, when you login via ssh, you get an immediate status screen indicating if there are pending updates. There is also a check for updates that happens in the background which takes a while to complete. The displayed text is the result of the previous check, not the one that is happening currently on login, so the displayed info is often stale. It can also take a while for the background check to complete, during which time yum is locked.
It seems like a good idea, but the implementation causes more confusion than is solves. I think it should be removed, but wanted to solicit opinions (particularly opposing opinions) before doing so.
Also, if you want to keep the yum status notification (which I pretty much ignore, so no ādog in huntā) put an "as of {datetime} " on it so people can more easily see that the message may be stale.
In fact, transitioning this check from āssh loginā to āevery tuesday at midnightā might not be a bad idea.
If the information is more than 15 minutes stale, Iām of the opinion that itās no good, and causes more confusion than it corrects. I donāt think running a cron 4 times an hour forever, is an efficient way to address this narrow use case, again my opinion. If an admin needs to see update status on login, they can run a command and wait for output that is current, otherwise they can go about their business and not think about it.
I honestly donāt remember the conversation when this was added but I am sure there was one.
I feel this would have been discussed. Not positive but I am guessing this was something rob wrote.
When I open my terminal using zsh it will prompt me about updates every so often.
My next great idea would be to make it an āadvanced settingā or a setting in moduleadmin where people can choose to run it or not. Then the debate (much simpler) becomes what is the default behavior.
Iām all for this. I canāt tell you how many times Iāve had a busted install and I couldnāt login because a module was broken. It. also wrecks debug, but thatās another issue.
Simple. Just give the user the option on a simple user configurable flag on any init file and then⦠[[ $KEEPQUIET ]] || echo "The British are coming..."
I agree that you should remove it. The information is readily available in the web interface. If Iām going to the command line, Iām busy with something more important.
As for the stale info on pending updates, Iād like to see it either removed or timestamped (donāt care which). The stale info is mildly annoying.
As for automatically starting a check for updates on ssh login, DEFINITELY remove it. I donāt want/need this info every time I log in. When I do want it Iāll issue the appropriate command(s) myself.