context: implement checkUpdates and listInstalledPackages