Add package_hash functionality to CentOS, Darwin, and Ubuntu.