Re: kernel RPMs dependency on removing prior kernel?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jeff Spaleta wrote:
> On Nov 14, 2007 10:53 PM, Andrew Farris <lordmorgul@xxxxxxxxx> wrote:
>> Is the following kernel RPM behavior really necessary?
> Simple answer... By default yum is configured to keep exactly 2
> kernels installed. You can disable that by editting yum.conf.
> 
> Why is it erroring out instead of removing the nvidia kmod?  No
> idea... i should be telling you it will remove the dependent kmod as
> well. I would need to poke at the rpmdb depchains of an affected
> system to get a clear picture as to why its failing.  This works as
> expect on the F7 system with nvidia kmods that I have. Haven't moved
> that system to F8 yet so I can't comment on the behavior on an F8
> system.
> 
> -jef
> 

I should have mentioned having tried to make that work... but the simple answer
doesn't seem to.  The problem is I've had installonly_limit set to 5, to 0, to
10... and it always still fails (see this below).

I've tried the old plugin configuration as well.  Although I can change the
number of kernels it tries to get rid of... it still tries to remove my running
kernel!  I've manually set installonlypkgs=kernel, but without that (defaults)
it does the same thing.  I could not get it to install the kernel...

So taking a clue from your kmod comment I removed it, and now yum behaved
correctly, so the presence of the kmod-nvidia package is preventing the kernel
install from happening even though it was not going to remove the 1-42 kernel.

The installonlyn code may be parsing dependencies and failing the process even
though its not actually going to remove the kernel when the time comes.
Removing my video driver is also not good!

Could this be a package issue with the kmod-nvidia rpm or do you vote yum's
behavior?


 - yum install kernel-2.6.23.1-49.fc8
 fedora                    100% |=========================| 2.1 kB    00:00
 livna-development         100% |=========================| 2.1 kB    00:00
 updates-testing           100% |=========================| 2.3 kB    00:00
 livna                     100% |=========================| 2.1 kB    00:00
 updates                   100% |=========================| 2.3 kB    00:00
 Setting up Install Process
 Parsing package install arguments
 Resolving Dependencies
 --> Running transaction check
 --> Processing Dependency: kernel-i686 = 2.6.23.1-42.fc8 for package:
kmod-nvidia-2.6.23.1-42.fc8
 ---> Package kernel.i686 0:2.6.23.1-49.fc8 set to be updated
 --> Finished Dependency Resolution
 Error: Missing Dependency: kernel-i686 = 2.6.23.1-42.fc8 is needed by package
kmod-nvidia-2.6.23.1-42.fc8

  - cat /etc/yum.conf
  [main]
  cachedir=/var/cache/yum
  keepcache=0
  debuglevel=2
  logfile=/var/log/yum.log
  exactarch=1
  obsoletes=1
  gpgcheck=1
  plugins=1
  metadata_expire=1800
  installonly_limit=10
  installonlypkgs=kernel

 - rpm -e --nodeps kmod-nvidia-2.6.23.1-42.fc8

 - yum install kernel-2.6.23.1-49.fc8
  Loading "refresh-updatesd" plugin
  Setting up Install Process
  Parsing package install arguments
  Resolving Dependencies
  nnnnnnnnnnnnnnnnnnnnnnnnnnnnn
  --nn Package kernel.i686 0:2.6.23.1-49.fc8 set to be updated
  --> Finished Dependency Resolution

  Dependencies Resolved

  nnnnnnnnnnnnnnnnnnnnnnnnnnnnn===============================================n
   Package                 Arch       Version          Repository        Size
   =============================================================================
   Installing:
    nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn1-49.fc8  updates            16 M

    Transaction Summary
    =============================================================================
    Install      1 Package(s)
    Update       0 Package(s)
    Remove       0 Package(s)

Totan download size: 16 M
Is this ok [y/N]: y

 - rpm -q kernel
 kernel-2.6.23-6.fc8
 kernel-2.6.23.1-37.fc8
 kernel-2.6.23.1-41.fc8
 kernel-2.6.23.1-42.fc8
 kernel-2.6.23.1-49.fc8



-- 
Andrew Farris <lordmorgul@xxxxxxxxx> <ajfarris@xxxxxxxxx>
   gpg 0xC99B1DF3 at pgp.mit.edu

No one now has, and no one will ever again get, the big picture. - Daniel Geer
----                                                                       ----

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux