Checking for the update New Version - MikroTik Script RouterOS

How to Checking for the update New Version, The command that will check for the update is

/:put [system package update get]

Result:
[admin@MikroTik] > :put [system package update get]
channel=bugfix;installed-version=6.42.6;latest-version=6.45.8;status=New version is available
or

/system package update check-for-updates

Result:
[admin@MikroTik] > system package update check-for-updates 
           channel: long-term
           installed-version: 6.46.8
           latest-version: 6.47.9
           status: New version is available
Credit: www.o-om.com