How to get the updates for the apps with the command line?

Hi
I have 0.5.1 running.
What script checks for the app updates, and/or what file is used to store informations about installed apps, please?
I’d like to check that without having to log in, just with ssh.