this post was submitted on 29 Sep 2025
7 points (100.0% liked)

Fedora Linux

2796 readers
2 users here now

All about Fedora Linux

founded 6 years ago
MODERATORS
 

I have installed CUDA Toolkit, which comes with its own Nvidia drivers etc. However, since the Nvidia drivers and tools from rpmfusion-nonfree-updates are slightly newer, Fedora tries to install those instead, which fails due to conflicts.

How can I prevent Fedora from trying to overwrite packages from the cuda-fedora42 repo with similar packages from rpmfusion-nonfree-updates? I would prefer not having to lock the package version, as I want updates when available in the cuda repo. I would also prefer to not remove rpmfusion-nonfree-updates entirely, since I get Discord and some other packages from there too.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] anamethatisnt@sopuli.xyz 3 points 4 months ago (1 children)

My google-fu says that you should open up the repository file /etc/yum.repos.d/rpmfusion-nonfree.repo with your favourite text editor and add an exclude=nvidia* in the [rpmfusion-nonfree] section. But that seem to be older info and also relate to yum.
The official dnf command ref has an excludepkgs flag instead
https://dnf.readthedocs.io/en/latest/conf_ref.html#options-for-both-main-and-repo

I haven't tried it myself.

[โ€“] fhein@lemmy.world 2 points 4 months ago

It seems like I didn't have to use the drivers from cuda-fedora42 in order to use the CUDA Toolkit, but I'll save this in case I get package conflicts in the other direction in the future. Thanks!