Update metadata only when installed packages are to be updated