Ask Your Question
3

add priority parameter to dnf repo files when using third party repos?

asked 2018-04-29 13:18:22 -0500

didier gravatar image

updated 2018-05-01 05:35:05 -0500

hhlp gravatar image

Hi, I'm new to linux and have chosen to use fedora workstation as my main os now. Recently, I've been reading a centos administrator book where it is recommended to use the priority plugin with yum when using third party repos. This would have the benefit to prioritize security patches from the original repos in favor of third-party repos.

DNF seems to have a builtin priority parameter.

Should you configure the priority parameter when using third party repos with dnf when using fedora?

I'm using the following priority settings on the enabled=1 hosts in my repo files:

/etc/yum.repos.d/fedora.repo:priority=1
/etc/yum.repos.d/fedora-updates.repo:priority=1
/etc/yum.repos.d/rpmfusion-free.repo:priority=10
/etc/yum.repos.d/rpmfusion-free-updates.repo:priority=10
/etc/yum.repos.d/rpmfusion-nonfree.repo:priority=10
/etc/yum.repos.d/rpmfusion-nonfree-updates.repo:priority=10

What would you recommend or what is your experience? Thank you very much! Kind regards, Didier

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-04-30 08:30:13 -0500

florian gravatar image

updated 2018-04-30 09:34:13 -0500

This is what the manual says about the priorityconfiguration: (http://dnf.readthedocs.io/en/latest/c...)

The priority value of this repository, default is 99. If there is more than one candidate package for a particular operation, the one from a repo with the lowest priority value is picked, possibly despite being less convenient otherwise (e.g. by being a lower version).

Reading that, I think this is different from what you had thought. It means that priority only comes to play when there is a package available from several repositories - then dnf selects the repo with the lowest priority.

What you are trying is to prioritize a certain repo (i.e. fedora-updates) over another one (i.e. rpmfusion-nonfree-updates). I don't see why you would want to do that. Once dnf runs an update, it will just update all packages available for update. If one repo is unavailable it will skip the broken repo. Is your concern out of limited bandwidth?

Also note, security patches are not only provided by Fedora's standard repos. If there is a security-related issue with one of the packages installed from a third-party repo, you receive the update from there. So, in that case, you may not want to have lower priority for 3rd party.

If you ask me, leave everything as is.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2018-04-29 13:18:22 -0500

Seen: 595 times

Last updated: May 01 '18