If the rpm package is available in multiple repos (configured in /etc/yum.repos.d/ directory), yum is scanning all the repo files and installing it from the one which has the latest version of that package.
I want the package to be downloaded from a specific repo, also I don't want to completely disable the other repositories, instead, I want just one package to be fetched from a specific repo, and disable it from getting downloaded from other repo.
I also don't want to use the version as a filter as there could be the same version of the same package present on multiple repos.
you can tell yum
which repositories he can use:
yum --disablerepo="*" --enablerepo="<desired-repo-id>" install package-name
This does not permanently enable/disable repositories; just for this command execution.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With