Re: yum remove <old kernel pkgs> -- wants to remove a ton of stuff

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



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

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux