I'm in a situation similar to How can I install a local RPM using only the local dependency RPM files? or install a directory full of RPMs so that rpms providing dependencies are installed before dependent rpms?, but I'm on Fedora rather than CentOS and have DNF instead of Yum.
I have a bunch of
.rpm files downloaded to a directory. I want to install one of them (let's say
foo-1.0-1.rpm) and have its dependencies. I only want to install the required things, not all of the other files that have been downloaded, like
foo-extraplugin-that-no-one-uses-1.0-1.rpm. If I do
dnf install *, I get all the extra junk. If I do just
dnf install foo-1.0-1.rpm, I get errors about missing dependencies on
What should I do?