I have used the package-cleanup utility to remove old kernel packages, but I noticed that it only removes the 'kernel' and 'kernel-devel' packages. It does not touch 'kernel-smp', 'kernel-hugemem', etc. What is the recommended method of cleaning up these other kernel packages? Should I just 'yum remove' the ones I don't need? Some of my servers have a few piling up... # rpm -q kernel-smp kernel-smp-2.6.9-34.EL kernel-smp-2.6.9-34.0.1.EL kernel-smp-2.6.9-34.0.2.EL kernel-smp-2.6.9-42.0.2.EL kernel-smp-2.6.9-42.0.3.EL kernel-smp-2.6.9-55.0.2.EL kernel-smp-2.6.9-55.0.6.EL kernel-smp-2.6.9-67.0.1.EL kernel-smp-2.6.9-67.0.15.EL kernel-smp-2.6.9-67.0.20.EL -- Bowie
On Mon, Jul 14, 2008 at 4:06 PM, Bowie Bailey <Bowie_Bailey at buc.com> wrote:> I have used the package-cleanup utility to remove old kernel packages, > but I noticed that it only removes the 'kernel' and 'kernel-devel' > packages. It does not touch 'kernel-smp', 'kernel-hugemem', etc. What > is the recommended method of cleaning up these other kernel packages? > Should I just 'yum remove' the ones I don't need? > > Some of my servers have a few piling up... >http://linux.duke.edu/~skvidal/useful-scripts/kernel-prune.py this will generate a list of old kernel bits you don't need. You can pipe it through rpm -e for cleanup. -- During times of universal deceit, telling the truth becomes a revolutionary act. George Orwell
Jim Perrin wrote:> On Mon, Jul 14, 2008 at 4:06 PM, Bowie Bailey <Bowie_Bailey at buc.com> > wrote: > > I have used the package-cleanup utility to remove old kernel > > packages, but I noticed that it only removes the 'kernel' and > > 'kernel-devel' packages. It does not touch 'kernel-smp', > > 'kernel-hugemem', etc. What is the recommended method of cleaning > > up these other kernel packages? Should I just 'yum remove' the ones > > I don't need? > > > > Some of my servers have a few piling up... > > > > http://linux.duke.edu/~skvidal/useful-scripts/kernel-prune.py > > this will generate a list of old kernel bits you don't need. You can > pipe it through rpm -e for cleanup.So what you are saying is that it is ok to simply 'rpm -e' or 'yum remove' unused kernel packages? -- Bowie