use pkg.latest rather than pgk.installed
try adding refresh: True to pkg