class Chef::Provider::Package::Dnf

def unlock_package(names, versions)

support to lock / unlock. The best solution is to write an execute resource which does a only_if `dnf versionlock | grep '^pattern`` kind of approach
NB: the dnf_package provider manages individual single packages, please do not submit issues or PRs to try to add wildcard
def unlock_package(names, versions)
  # dnf versionlock delete on rhel6 needs the glob nonsense in the following command
  dnf("-d0", "-e0", "-y", options, "versionlock", "delete", resolved_package_lock_names(names).map { |n| "*:#{n}-*" })
end