Git Product home page Git Product logo

Comments (8)

kmittman avatar kmittman commented on July 28, 2024

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.

As per: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/sec-configuring_yum_and_yum_repositories

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.

txangel avatar txangel commented on July 28, 2024

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.

kmittman avatar kmittman commented on July 28, 2024

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.

txangel avatar txangel commented on July 28, 2024

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.

kmittman avatar kmittman commented on July 28, 2024

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.

txangel avatar txangel commented on July 28, 2024

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.

txangel avatar txangel commented on July 28, 2024

As a workaround we have now changed our infra so our systems do an uninstall followed by install.

from yum-packaging-precompiled-kmod.

txangel avatar txangel commented on July 28, 2024

(thanks by the way) (:

from yum-packaging-precompiled-kmod.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.