I am pretty new to Linux. So it might be a dumb question. I installed a package from a specific repository. But when I run DNF update, it tells me there is an update for this package from another repository. I would only like to update to newer version in the same repository I installed it from.
The packages even have different names (azure-cli vs azure-cli.x86_64).
Why is it asking me to replace what I installed from a different repository? Is there a way to limit updates to the original repository only?
- It’s the pcakages-microsoft-com-prod repo (you can see it in the second line of the screenshot, top right corner)
- Ah. I assumed it would consider the extensions too. Sounds like it does not.
- The third party repo is the official repo for that package that is maintained by the creator of the tool (Microsoft) and I trust it more than the package that is maintained by someone else (looks like one person as far as I can see). No offense to the person, but I would trust Microsoft as the source over someone I don’t know.
- I think this is what I need.
- This is good to know as well!
Thank you. I will mess around with #4!
Turned out #5 was closer. I had to put that into the individual fedora repo config files at: /etc/yum.repos.d/ (3 of them, fedora, fedora-updates, and fedora-updates-testing) to make it permanently skip checking those repos for that package.
You also could put similar options into /etc/dnf/dnf.conf that would affect the global config, not just the individual repos.
Your solution sounds the best for your particular needs.