When I am using apt-get, and often times when I login via
ssh I get a statement that:
X upgraded, Y newly installed, Z to remove and A not upgraded.
(Obviously X, Y, Z, A are replaced with the relevant numbers).
Is there a place or a file where these are kept? The shell seems to know when I login, and I scoured the motd files to no avail.
Is there anything on the system that I can get to in order to determine if the machine has an update waiting?
The context for the request: I want to use it as an exercise to modify my powerline-shell and I don't want to do something taxing, since the prompt call needs to stay fast-moving. If those variables can be found and are
>0 then I am good to go.