I though that (at least) yum detects "install-only" packages by their 'provides', not by name. I might be wrong with that though...here's a relevant section of /usr/lib/yum-plugins/installonlyn.py (yum-2.6.1):<br>
<br> for instpkg in conf.installonlypkgs:<br> for m in mems:<br> if (<a href="http://m.name">m.name</a> == instpkg or instpkg in m.po.getProvidesNames()) \<br> and m.ts_state in ('i', 'u'):
<br><br>I'm not yum expert but it seems that 'instpkg in m.po.getProvidesNames()' is the piece of code which helps in this scenario.<br><br>We name our kernel packages as 'ovzkernel...' just because we don't want to mess with usual non-openvz kernels. OpenVZ and non-OpenVZ kernel should not be treated uniformly, otherwise yum will "upgrade" OpenVZ
2.6.16-based kernel with stock 2.6.18 -- which is a wrong thing to do. Well, the fact that vzctl depends on something that ovzkernel provides might help, but I'm not sure.<br><br>So, if yum can handle this, we'd rather not change the ovzkernel package name. I'm not sure about apt though.
<br><br><div><span class="gmail_quote">On 10/16/06, <b class="gmail_sendername">Dag Wieers</b> <<a href="mailto:dag@wieers.com">dag@wieers.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>Yet another mail. The official openvz kernel RPMs are named in such a way<br>that it causes problems. Tools like yum and apt make a special case about<br>kernel RPM files because multiple of these can be installed next to each
<br>other.<br><br>Because OpenVZ name their kernel ovzkernel, this is not possible. Can we<br>change the name of the OpenVZ kernel package from:<br><br> ovzkernel-2.6.9-023stab030.1-smp<br>to:<br> kernel-smp-2.6.9-42.0.3.ovz.1
<br><br>This would make it more clear to people what it is based on and would make<br>apt and yum work with those kernels by default.<br><br>Kind regards,<br>-- dag wieers, <a href="mailto:dag@wieers.com">dag@wieers.com
</a>, <a href="http://dag.wieers.com/">http://dag.wieers.com/</a> --<br>[all I want is a warm bed and a kind word and unlimited power]<br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@openvz.org">
Users@openvz.org</a><br><a href="https://openvz.org/mailman/listinfo/users">https://openvz.org/mailman/listinfo/users</a><br></blockquote></div><br>