check package versions and inform if they don't match the version specified

check_pkg_version(pkg, version)

Arguments

pkg

package

version

version that is expected