[elrepo] kmod-nvidia-340xx-340.107-2.el7_6 should require dependencies kernel-3.10.0-957 ?

Phil Perry phil at elrepo.org
Wed Nov 28 03:04:05 EST 2018


On 28/11/2018 03:09, Rejean Lepage wrote:
> Hi Phil, I was reading up since our last exchange and a comment you made 
> here make me wonder...
> 
> On 2018-11-27 2:41 p.m., Phil Perry wrote:
>> Please could you show the output from:
>>
>> rpm -q --whatrequires nvidia-x11-drv 
> 
> ============================================
> 
> % rpm -q --whatrequires nvidia-x11-drv-340xx
> kmod-nvidia-340xx-340.107-2.el7_6.elrepo.x86_64
> 
> % rpm -q --whatrequires kmod-nvidia-340xx
> no package requires kmod-nvidia-340xx
> 
> % rpm -q --whatrequires kmod-nvidia-340xx-340.107-2.el7_6.elrepo.x86_64
> no package requires kmod-nvidia-340xx-340.107-2.el7_6.elrepo.x86_64
> 
> % yum --enablerepo=elrepo install kmod-nvidia-340xx
> Loaded plugins: langpacks
> Resolving Dependencies
> --> Running transaction check
> ---> Package kmod-nvidia-340xx.x86_64 0:340.107-2.el7_6.elrepo will be 
> installed
> --> Processing Dependency: nvidia-x11-drv-340xx = 340.107 for package: 
> kmod-nvidia-340xx-340.107-2.el7_6.elrepo.x86_64
> ============================================
> 
> Shouldn't this package also be listing it require a specific 
> kernel-3.10.0-957  ?
> If a kmod knows it require kernel 957 + why isn't it a requirement?
> 

It is, look at:

rpm -q --requires kmod-nvidia

> Instead of using a plugin I am wondering - What would happen if in order 
> to install kmod-nvidia-340xx-340.107-2.*el7_6*.elrepo.x86_64
> if would actively ask for 2-3 dependencies = 
> kernel-3.10.0-*957*.el7.x86_64 , kernel-devel-3.10.0-*957*.el7.x86_64
> 
> 1- if the kernel is available it would add it to the list to be 
> installed. (or it require it to be installed prior to update?)
> 2- if it's already installed it would continue with kmod.
> 3- if it's not available it would stop with a missing requirement... 
> would this be a broken (and --skip-broken would skip it) ?
> 

That is exactly what happens already and people complain that their 
system is broken :-)

> Wouldn't this solve the problem where it try to install 
> nvidia-x11-drv-340xx then fails with a bunch of missing symbols on SL 
> 7.5 < 7.6
> 

It fails with a missing kernel *and* a bunch of missing symbols. Maybe 
you didn't see kernel requires amongst all the other noise.

> I don't recall how yum react to missing dependencies, does it stop all 
> further updates or it would continue since we got skip_broken=1 ?
> 

If you use skip_broken, yum will ignore the broken updates and continue 
to install all updates where dependencies can be met.

> PS: today was the day where our Scientific Linux machines updated the 
> kernel 957 and every rebooted machines failed with a bad 7.5 nvidia 
> driver. :(
> 

Why was that? Did you update to the new nvidia drivers for el7.6 at the 
same time? If you are unable to manage your own systems effectively, the 
new yum plugin I wrote will do the job for you.



More information about the elrepo mailing list