Inside a recipe, Chef should have a semantic to retrieve the version of a currently installed package.