Comments (8)
I believe this a WAR for EL7 distros to allow multiple kmod packages (same NVIDIA driver, different kernel versions) to be installed at the same time.
installonlypkgs=space separated list of packages
Here you can provide a space-separated list of packages which yum can install, but will never update. See the yum.conf(5) manual page for the list of packages which are install-only by default.If you add the installonlypkgs directive to /etc/yum.conf, you should ensure that you list all of the packages that should be install-only, including any of those listed under the installonlypkgs section of yum.conf(5). In particular, kernel packages should always be listed in installonlypkgs (as they are by default), and installonly_limit should always be set to a value greater than 2 so that a backup kernel is always available in case the default one fails to boot.
from yum-packaging-precompiled-kmod.
Thanks for the quick response @kmittman!
Yes that's what it seems to allow but the issue then becomes that to install two of them, say 470 and 525
Both seem to have a dependency on nvidia-driver-latest
but 470 depends on nvidia-driver-latest = 3:470.xx.xx
while 525 depends on nvidia-driver-latest = 3:525.xx.xx
And when it tries to install both it finds that it can't install both drivers.
Or at least that's what we are experiencing in our environments where it hits the conflict
nvidia-driver-latest = 3:470.xx.xx is needed by kmod-nvidia-latest-3:zzzr470zzz
(which then prevents it from installing 525)
I find it odd that this hasn't been reported before, perhaps it's exclusive to our environments for some reason I can't yet grasp.
If you think that the spec supporting multiple installations is indeed as designed and a feature feel free to close this.
from yum-packaging-precompiled-kmod.
Are you trying to install 470.xx and 525.xx side-by-side (not supported) or want to upgrade from 470 -> 525 ?
What I was referencing in previous comment was let's say driver 470.182.03
and both kernel 3.10.0-100
and 3.10.5-200
are installed, then there could be kmod for each, so that when reboot into either Linux kernel the .ko modules can load.
Could you provide more details about what command is run (I understand there may be some config management engine, but if you could piece together the yum
command) that would be helpful, for example
sudo yum install nvidia-driver-latest
and the resultant NVIDIA RPMs that are installed
rpm -qa | grep nvidia | sort
Alternatively, if you are trying to stay on 470.xxx
then
sudo yum install nvidia-driver-branch-470
from yum-packaging-precompiled-kmod.
We try to upgrade from 470 to 525 but the way it happens is through the upgrade of the kmod package.
We don't install the nvidia-driver-latest
directly (which maybe is what gets us into this)
The command it runs is a simple yum update
:
Resolving Dependencies
[...]
Dependencies Resolved
====================================================================================================================================================================================================
Package Arch Version Repository Size
====================================================================================================================================================================================================
Installing:
kmod-nvidia-latest x86_64 3:zzzz.r525.zzzz REDACTED REDACTED
Updating:
nvidia-driver-latest x86_64 3:525.85.12-1.el7 REDACTED REDACTED
nvidia-driver-latest-NVML x86_64 3:525.85.12-1.el7 REDACTED REDACTED
nvidia-driver-latest-NvFBCOpenGL x86_64 3:525.85.12-1.el7 REDACTED REDACTED
nvidia-driver-latest-cuda x86_64 3:525.85.12-1.el7 REDACTED REDACTED
nvidia-driver-latest-cuda-libs x86_64 3:525.85.12-1.el7 REDACTED REDACTED
nvidia-driver-latest-devel x86_64 3:525.85.12-1.el7 REDACTED REDACTED
nvidia-driver-latest-libs x86_64 3:525.85.12-1.el7 REDACTED REDACTED
nvidia-modprobe-latest x86_64 3:525.85.12-1.el7 REDACTED REDACTED
nvidia-persistenced-latest x86_64 3:525.85.12-1.el7 REDACTED REDACTED
nvidia-xconfig-latest x86_64 3:525.85.12-1.el7 REDACTED REDACTED
Installing for dependencies:
egl-wayland x86_64 1.1.6-1.el7 REDACTED REDACTED
Not available:
kmod-nvidia-latest x86_64 3:zzz.r525.zzz - 0.0
Transaction Summary
====================================================================================================================================================================================================
Install 1 Package (+1 Dependent package)
Upgrade 10 Packages
Not available 1 Package
Total download size: REDACTED
[...]
Total 125 MB/s | 334 MB 00:00:02
Running transaction check
ERROR with transaction check vs depsolve:
nvidia-driver-latest = 3:470.zzz is needed by (installed) kmod-nvidia-latest-3:zzz.r470.zzz
You could try running: rpm -Va --nofiles --nodigest
from yum-packaging-precompiled-kmod.
I know dnf
has --allowerasing
and --best
flags, though I don't recall if those are applicable to yum
or if maybe yum upgrade
sets those flags versus yum update
from yum-packaging-precompiled-kmod.
Sadly as far as I can tell both yum upgrade
and yum update --obsoletes
fail because of the same conflict (that it cannot remove the old driver because that would break the old kmod package)
from yum-packaging-precompiled-kmod.
As a workaround we have now changed our infra so our systems do an uninstall followed by install.
from yum-packaging-precompiled-kmod.
(thanks by the way) (:
from yum-packaging-precompiled-kmod.
Related Issues (20)
- CentOS Stream target? HOT 1
- Update /fm profile HOT 1
- Package kmod-nvidia-460.91.03-4.18.0-305.7.1-460.91.03-3.el8_4.x86_64.rpm is not signed HOT 2
- kmod-nvidia-470.57.02-4.18.0-305.17.1 for kernel version 4.18.0-305.17.1.el8_4 and NVIDIA driver 470.57.02 could be found HOT 3
- no kernel module package kmod-nvidia-470.57.02-4.18.0-305.19.1 for kernel version 4.18.0-305.19.1.el8_4 and NVIDIA driver 470.57.02 could be found HOT 3
- Screen blank after installing drivers HOT 7
- Building modules for CentOS Stream
- precompiled kmod packages unavailable for kernel 4.18.0-348.23.1 HOT 5
- RHEL 9 HOT 1
- precompiled kmod packages unavailable for kernel 4.18.0-372.16.1 HOT 21
- Kernel version string updated release tags HOT 8
- RHEL7 inconsistency between the file mode of ld.gold.nvidia and the defattr HOT 6
- Drivers not working on laptop (Dell XPS 9520) with switchable graphics HOT 1
- Help compiling latest nvidia package NVIDIA-Linux-x86_64-525.60.11.run HOT 2
- Investigate EL kernel version alignment
- Migrate genmodules.py to cuda-repo-management
- kmod-nvidia-535.54.03-5.14.0-284.18.1-535.86.10-1.el9_2.x86_64.rpm is missing HOT 2
- ld file permissions do not match what is declared in the rpm manifest
- Benefiting from RHEL's kABI stability
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yum-packaging-precompiled-kmod.