Re: How do I remove a kernel

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





On 1/8/19 6:02 PM, Stephen John Smoogen wrote:
On Tue, 8 Jan 2019 at 17:58, Robert Moskowitz <rgm@xxxxxxxxxxxxxxx> wrote:


On 1/8/19 5:30 PM, mark wrote:
Robert Moskowitz wrote:
I have 4 kernels in /boot, leaving on 20MB which is not enough for the
next one.

I had installonly_limit= set at 5, as there were some kernel problems.
After I got the error that there was not enough room for another kernel,
I set installonly_limit= to 3 and did the update with --exclude=kernel*

That worked to update everything else, but not remove the oldest kernel.

How can I remove the oldest kernel to make room for the new one?
yum remove kernel-rest-of-kernel-name, for example
yum remove kernel-3.10.0-862.2.3.el7.x86_64
# yum remove kernel-4.14.28-201.el7.centos.armv7hl
Loaded plugins: fastestmirror
Resolving Dependencies
--> Running transaction check
---> Package kernel.armv7hl 0:4.14.28-201.el7.centos will be erased
--> Finished Dependency Resolution

Dependencies Resolved


================================================================================
   Package   Arch       Version Repository                Size

================================================================================
Removing:
   kernel    armv7hl    4.14.28-201.el7.centos @instKern/$releasever    0.0

Transaction Summary

================================================================================
Remove  1 Package

Installed size: 0
Is this ok [y/N]:

Only freed up 12MB.  All the other kernel components are still there:

what other components? Can you give some details on what you are seeing
staying around? That will help (especially since people didn't know from
the first email you are on a arm system which may have different items than
an x86_64)

Oops.  My bad for leaving that off, but what about all the kernel* (like 4 rpms?) that normally gets installed?

dtb-4.14.28-201.el7.centos.armv7hl
initramfs-4.14.28-201.el7.centos.armv7hl.img
System.map-4.14.28-201.el7.centos.armv7hl
uImage-4.14.28-201.el7.centos.armv7hl
uInitrd-4.14.28-201.el7.centos.armv7hl
vmlinuz-4.14.28-201.el7.centos.armv7hl

The dtb* is a directory.




How do I get rid of the whole lot?


thanks

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



_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://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