dnf update --refresh
dnf search {packagename}
dnf install {packagename}
dnf list installed
Fix: for dnf local
dnf install dnf-plugin-local
mkdir -p /var/lib/dnf/plugins/local
/usr/bin/createrepo_c /var/lib/dnf/plugins/local
dnf check-update --refresh