Kostas Sfakiotakis wrote:
Greetings Rahul,
Rahul wrote:
FC5 has a yum plugin installed by default to do this. In previous
versions,
# yum install yum-utils
# package-cleanup --oldkernels
[root@Magellan boot]# package-cleanup --oldkernels
Setting up yum
Excluding Packages in global exclude list
Finished
Traceback (most recent call last):
File "/usr/bin/package-cleanup", line 302, in ?
main()
File "/usr/bin/package-cleanup", line 283, in main
removeKernels(my, opts.kernelcount, opts.confirmed, opts.keepdevel)
File "/usr/bin/package-cleanup", line 193, in removeKernels
(kver,krel) = runningkernel.split('-')
ValueError: need more than 1 value to unpack
What can you make out of this ?
Kind Regards,
Kostas
rpm -e kernel-version
you can get a list of kernels and their versions installed with "rpm -q
kernel"
instaed of doing "rpm -e kernel" ... you must append the version to the
kernel name ...
dont just go deleting files...use rpm