[CentOS] yum remove <old kernel pkgs> -- wants to remove a ton of stuff
David Hrbáč
hrbac.conf at seznam.cz
Thu Jul 17 07:19:09 UTC 2008
fred smith napsal(a):
> Thanks to Johnny and all the others who pointed out the stupid thing
> I was trying to do. I'll follow the advice to clean up 'list' before
> trying it again.
>
Fred,
besides you can use installonlyn plugin, you can remove old kernel but
few like this:
if [ $(rpm -q kernel | wc -l) -gt 1 ]; then rpm -e $(rpm -q kernel | sed
'$d'); fi
if [ $(rpm -q kernel-smp | wc -l) -gt 1 ]; then rpm -e $(rpm -q
kernel-smp | sed '$d'); fi
etc.
David
More information about the CentOS
mailing list