Re: removing old Kernels

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

 



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



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux