I have a local yum repository for CentOS4, and from time to time I add new (custom) kernel RPMS. However, when I run 'yum update' on an SMP box, yum 'installs' the new kernel, kernel-devel and kernel-smp packages, but 'updates' the kernel-smp-devel package. i.e. I end up with multiple versions of the kernel, kernel-devel and kernel-smp packages, but only the latest kernel-smp-devel What do I need to do to get the kernel-smp-devel RPMS to 'install' instead of 'update'? Thanks James Pearson
James Pearson wrote:> I have a local yum repository for CentOS4, and from time to time I add > new (custom) kernel RPMS. > > However, when I run 'yum update' on an SMP box, yum 'installs' the new > kernel, kernel-devel and kernel-smp packages, but 'updates' the > kernel-smp-devel package. > > i.e. I end up with multiple versions of the kernel, kernel-devel and > kernel-smp packages, but only the latest kernel-smp-devel > > What do I need to do to get the kernel-smp-devel RPMS to 'install' > instead of 'update'? >put this in your /etc/yum.conf file: installonlypkgs=kernel kernel-smp kernel-devel kernel-smp-devel kernel-largesmp kernel-largesmp-devel kernel-hugemem kernel-hugemem-devel kernel-xenU kernel-xenU-devel (all one line) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 252 bytes Desc: OpenPGP digital signature URL: <http://lists.centos.org/pipermail/centos/attachments/20071025/e17ee737/attachment-0004.sig>
James Pearson wrote:> What do I need to do to get the kernel-smp-devel RPMS to 'install' instead > of 'update'?See yum.conf(5) and search for installonlypkgs. Cheers, Ralph -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20071025/9999362c/attachment-0004.sig>
Johnny Hughes wrote:> James Pearson wrote: > >>I have a local yum repository for CentOS4, and from time to time I add >>new (custom) kernel RPMS. >> >>However, when I run 'yum update' on an SMP box, yum 'installs' the new >>kernel, kernel-devel and kernel-smp packages, but 'updates' the >>kernel-smp-devel package. >> >>i.e. I end up with multiple versions of the kernel, kernel-devel and >>kernel-smp packages, but only the latest kernel-smp-devel >> >>What do I need to do to get the kernel-smp-devel RPMS to 'install' >>instead of 'update'? >> > > put this in your /etc/yum.conf file: > > installonlypkgs=kernel kernel-smp kernel-devel kernel-smp-devel > kernel-largesmp kernel-largesmp-devel kernel-hugemem > kernel-hugemem-devel kernel-xenU kernel-xenU-develThanks - that works James Pearson