Categories
Uncategorized

Huge waste disk space – Remove Multiple Old kernels worth 3GB (Total 116 packages)

But keep the current or latest one.

Reading state information… Done
The following packages will be REMOVED:
liblua5.1-0 linux-headers-4.10.0-38 linux-headers-4.10.0-38-generic linux-headers-4.10.0-40 linux-headers-4.10.0-40-generic linux-headers-4.10.0-42 linux-headers-4.10.0-42-generic
linux-headers-4.13.0-26 linux-headers-4.13.0-26-generic linux-headers-4.13.0-31 linux-headers-4.13.0-31-generic linux-headers-4.13.0-32 linux-headers-4.13.0-32-generic linux-headers-4.13.0-36
linux-headers-4.13.0-36-generic linux-headers-4.13.0-37 linux-headers-4.13.0-37-generic linux-headers-4.13.0-38 linux-headers-4.13.0-38-generic linux-headers-4.13.0-39 linux-headers-4.13.0-39-generic
linux-headers-4.13.0-41 linux-headers-4.13.0-41-generic linux-headers-4.13.0-43 linux-headers-4.13.0-43-generic linux-headers-4.13.0-45 linux-headers-4.13.0-45-generic linux-headers-4.15.0-24
linux-headers-4.15.0-24-generic linux-headers-4.15.0-29 linux-headers-4.15.0-29-generic linux-headers-4.15.0-30 linux-headers-4.15.0-30-generic linux-headers-4.15.0-32 linux-headers-4.15.0-32-generic
linux-headers-4.15.0-33 linux-headers-4.15.0-33-generic linux-headers-4.15.0-34 linux-headers-4.15.0-34-generic linux-headers-4.15.0-36 linux-headers-4.15.0-36-generic linux-headers-4.15.0-39
linux-headers-4.15.0-39-generic linux-headers-4.15.0-42 linux-headers-4.15.0-42-generic linux-headers-4.15.0-43 linux-headers-4.15.0-43-generic linux-headers-4.15.0-45 linux-headers-4.15.0-45-generic
linux-headers-4.15.0-46 linux-headers-4.15.0-46-generic linux-headers-4.15.0-47 linux-headers-4.15.0-47-generic linux-headers-4.15.0-50 linux-headers-4.15.0-50-generic linux-headers-4.15.0-52
linux-headers-4.15.0-52-generic linux-image-4.10.0-38-generic linux-image-4.10.0-40-generic linux-image-4.10.0-42-generic linux-image-4.13.0-26-generic linux-image-4.13.0-31-generic
linux-image-4.13.0-32-generic linux-image-4.13.0-36-generic linux-image-4.13.0-37-generic linux-image-4.13.0-38-generic linux-image-4.13.0-39-generic linux-image-4.13.0-41-generic
linux-image-4.13.0-43-generic linux-image-4.13.0-45-generic linux-image-4.15.0-24-generic linux-image-4.15.0-29-generic linux-image-4.15.0-30-generic linux-image-4.15.0-32-generic
linux-image-4.15.0-33-generic linux-image-4.15.0-34-generic linux-image-4.15.0-36-generic linux-image-4.15.0-39-generic linux-image-4.15.0-42-generic linux-image-4.15.0-43-generic
linux-image-4.15.0-45-generic linux-image-4.15.0-46-generic linux-image-4.15.0-47-generic linux-image-4.15.0-50-generic linux-image-4.15.0-52-generic linux-modules-4.15.0-24-generic
linux-modules-4.15.0-29-generic linux-modules-4.15.0-30-generic linux-modules-4.15.0-32-generic linux-modules-4.15.0-33-generic linux-modules-4.15.0-34-generic linux-modules-4.15.0-36-generic
linux-modules-4.15.0-39-generic linux-modules-4.15.0-42-generic linux-modules-4.15.0-43-generic linux-modules-4.15.0-45-generic linux-modules-4.15.0-46-generic linux-modules-4.15.0-47-generic
linux-modules-4.15.0-50-generic linux-modules-4.15.0-52-generic
0 upgraded, 0 newly installed, 100 to remove and 139 not upgraded.
After this operation, 4,462 MB disk space will be freed.
Do you want to continue? [Y/n]

[email protected]:~# dpkg -l | grep kernel
ii kmod 22-1ubuntu5 amd64 tools for managing Linux kernel modules
ii libaio1:amd64 0.3.110-2 amd64 Linux kernel AIO access library – shared library
ii libdrm2:amd64 2.4.76-1~ubuntu16.04.1 amd64 Userspace interface to kernel DRM services — runtime
ii linux-headers-4.10.0-38 4.10.0-38.42~16.04.1 all Header files related to Linux kernel version 4.10.0
ii linux-headers-4.10.0-38-generic 4.10.0-38.42~16.04.1 amd64 Linux kernel headers for version 4.10.0 on 64 bit x86 SMP
ii linux-headers-4.10.0-40 4.10.0-40.44~16.04.1 all Header files related to Linux kernel version 4.10.0
ii linux-headers-4.10.0-40-generic 4.10.0-40.44~16.04.1 amd64 Linux kernel headers for version 4.10.0 on 64 bit x86 SMP
ii linux-headers-4.10.0-42 4.10.0-42.46~16.04.1 all Header files related to Linux kernel version 4.10.0
ii linux-headers-4.10.0-42-generic 4.10.0-42.46~16.04.1 amd64 Linux kernel headers for version 4.10.0 on 64 bit x86 SMP
ii linux-headers-4.13.0-26 4.13.0-26.29~16.04.2 all Header files related to Linux kernel version 4.13.0
ii linux-headers-4.13.0-26-generic 4.13.0-26.29~16.04.2 amd64 Linux kernel headers for version 4.13.0 on 64 bit x86 SMP
ii linux-headers-4.13.0-31 4.13.0-31.34~16.04.1 all Header files related to Linux kernel version 4.13.0
ii linux-headers-4.13.0-31-generic 4.13.0-31.34~16.04.1 amd64 Linux kernel headers for version 4.13.0 on 64 bit x86 SMP
ii linux-headers-4.13.0-32 4.13.0-32.35~16.04.1 all Header files related to Linux kernel version 4.13.0
ii linux-headers-4.13.0-32-generic 4.13.0-32.35~16.04.1 amd64 Linux kernel headers for version 4.13.0 on 64 bit x86 SMP
ii linux-headers-4.13.0-36 4.13.0-36.40~16.04.1 all Header files related to Linux kernel version 4.13.0
ii linux-headers-4.13.0-36-generic 4.13.0-36.40~16.04.1 amd64 Linux kernel headers for version 4.13.0 on 64 bit x86 SMP
ii linux-headers-4.13.0-37 4.13.0-37.42~16.04.1 all Header files related to Linux kernel version 4.13.0
ii linux-headers-4.13.0-37-generic 4.13.0-37.42~16.04.1 amd64 Linux kernel headers for version 4.13.0 on 64 bit x86 SMP
ii linux-headers-4.13.0-38 4.13.0-38.43~16.04.1 all Header files related to Linux kernel version 4.13.0
ii linux-headers-4.13.0-38-generic 4.13.0-38.43~16.04.1 amd64 Linux kernel headers for version 4.13.0 on 64 bit x86 SMP
ii linux-headers-4.13.0-39 4.13.0-39.44~16.04.1 all Header files related to Linux kernel version 4.13.0
ii linux-headers-4.13.0-39-generic 4.13.0-39.44~16.04.1 amd64 Linux kernel headers for version 4.13.0 on 64 bit x86 SMP
ii linux-headers-4.13.0-41 4.13.0-41.46~16.04.1 all Header files related to Linux kernel version 4.13.0
ii linux-headers-4.13.0-41-generic 4.13.0-41.46~16.04.1 amd64 Linux kernel headers for version 4.13.0 on 64 bit x86 SMP
ii linux-headers-4.13.0-43 4.13.0-43.48~16.04.1 all Header files related to Linux kernel version 4.13.0
ii linux-headers-4.13.0-43-generic 4.13.0-43.48~16.04.1 amd64 Linux kernel headers for version 4.13.0 on 64 bit x86 SMP
ii linux-headers-4.13.0-45 4.13.0-45.50~16.04.1 all Header files related to Linux kernel version 4.13.0
ii linux-headers-4.13.0-45-generic 4.13.0-45.50~16.04.1 amd64 Linux kernel headers for version 4.13.0 on 64 bit x86 SMP
ii linux-headers-4.15.0-24 4.15.0-24.26~16.04.1 all Header files related to Linux kernel version 4.15.0
ii linux-headers-4.15.0-24-generic 4.15.0-24.26~16.04.1 amd64 Linux kernel headers for version 4.15.0 on 64 bit x86 SMP
ii linux-headers-4.15.0-29 4.15.0-29.31~16.04.1 all Header files related to Linux kernel version 4.15.0
ii linux-headers-4.15.0-29-generic 4.15.0-29.31~16.04.1 amd64 Linux kernel headers for version 4.15.0 on 64 bit x86 SMP
ii linux-headers-4.15.0-30 4.15.0-30.32~16.04.1 all Header files related to Linux kernel version 4.15.0
ii linux-headers-4.15.0-30-generic 4.15.0-30.32~16.04.1 amd64 Linux kernel headers for version 4.15.0 on 64 bit x86 SMP
ii linux-headers-4.15.0-32 4.15.0-32.35~16.04.1 all Header files related to Linux kernel version 4.15.0
ii linux-headers-4.15.0-32-generic 4.15.0-32.35~16.04.1 amd64 Linux kernel headers for version 4.15.0 on 64 bit x86 SMP
ii linux-headers-4.15.0-33 4.15.0-33.36~16.04.1 all Header files related to Linux kernel version 4.15.0
ii linux-headers-4.15.0-33-generic 4.15.0-33.36~16.04.1 amd64 Linux kernel headers for version 4.15.0 on 64 bit x86 SMP
ii linux-headers-4.15.0-34 4.15.0-34.37~16.04.1 all Header files related to Linux kernel version 4.15.0
ii linux-headers-4.15.0-34-generic 4.15.0-34.37~16.04.1 amd64 Linux kernel headers for version 4.15.0 on 64 bit x86 SMP
ii linux-headers-4.15.0-36 4.15.0-36.39~16.04.1 all Header files related to Linux kernel version 4.15.0
ii linux-headers-4.15.0-36-generic 4.15.0-36.39~16.04.1 amd64 Linux kernel headers for version 4.15.0 on 64 bit x86 SMP
ii linux-headers-4.15.0-39 4.15.0-39.42~16.04.1 all Header files related to Linux kernel version 4.15.0
ii linux-headers-4.15.0-39-generic 4.15.0-39.42~16.04.1 amd64 Linux kernel headers for version 4.15.0 on 64 bit x86 SMP
ii linux-headers-4.15.0-42 4.15.0-42.45~16.04.1 all Header files related to Linux kernel version 4.15.0
ii linux-headers-4.15.0-42-generic 4.15.0-42.45~16.04.1 amd64 Linux kernel headers for version 4.15.0 on 64 bit x86 SMP
ii linux-headers-4.15.0-43 4.15.0-43.46~16.04.1 all Header files related to Linux kernel version 4.15.0
ii linux-headers-4.15.0-43-generic 4.15.0-43.46~16.04.1 amd64 Linux kernel headers for version 4.15.0 on 64 bit x86 SMP
ii linux-headers-4.15.0-45 4.15.0-45.48~16.04.1 all Header files related to Linux kernel version 4.15.0
ii linux-headers-4.15.0-45-generic 4.15.0-45.48~16.04.1 amd64 Linux kernel headers for version 4.15.0 on 64 bit x86 SMP
ii linux-headers-4.15.0-46 4.15.0-46.49~16.04.1 all Header files related to Linux kernel version 4.15.0
ii linux-headers-4.15.0-46-generic 4.15.0-46.49~16.04.1 amd64 Linux kernel headers for version 4.15.0 on 64 bit x86 SMP
ii linux-headers-4.15.0-47 4.15.0-47.50~16.04.1 all Header files related to Linux kernel version 4.15.0
ii linux-headers-4.15.0-47-generic 4.15.0-47.50~16.04.1 amd64 Linux kernel headers for version 4.15.0 on 64 bit x86 SMP
ii linux-headers-4.15.0-50 4.15.0-50.54~16.04.1 all Header files related to Linux kernel version 4.15.0
ii linux-headers-4.15.0-50-generic 4.15.0-50.54~16.04.1 amd64 Linux kernel headers for version 4.15.0 on 64 bit x86 SMP
ii linux-headers-4.15.0-51 4.15.0-51.55~16.04.1 all Header files related to Linux kernel version 4.15.0
ii linux-headers-4.15.0-51-generic 4.15.0-51.55~16.04.1 amd64 Linux kernel headers for version 4.15.0 on 64 bit x86 SMP
ii linux-headers-4.15.0-52 4.15.0-52.56~16.04.1 all Header files related to Linux kernel version 4.15.0
ii linux-headers-4.15.0-52-generic 4.15.0-52.56~16.04.1 amd64 Linux kernel headers for version 4.15.0 on 64 bit x86 SMP
ii linux-headers-4.15.0-54 4.15.0-54.58~16.04.1 all Header files related to Linux kernel version 4.15.0
ii linux-headers-4.15.0-54-generic 4.15.0-54.58~16.04.1 amd64 Linux kernel headers for version 4.15.0 on 64 bit x86 SMP
ii linux-headers-4.15.0-55 4.15.0-55.60~16.04.2 all Header files related to Linux kernel version 4.15.0
ii linux-headers-4.15.0-55-generic 4.15.0-55.60~16.04.2 amd64 Linux kernel headers for version 4.15.0 on 64 bit x86 SMP
ii linux-headers-generic-hwe-16.04 4.15.0.55.76 amd64 Generic Linux kernel headers
ii linux-headers-virtual-hwe-16.04 4.15.0.55.76 amd64 Virtual Linux kernel headers
ii linux-image-4.10.0-38-generic 4.10.0-38.42~16.04.1 amd64 Linux kernel image for version 4.10.0 on 64 bit x86 SMP
ii linux-image-4.10.0-40-generic 4.10.0-40.44~16.04.1 amd64 Linux kernel image for version 4.10.0 on 64 bit x86 SMP
ii linux-image-4.10.0-42-generic 4.10.0-42.46~16.04.1 amd64 Linux kernel image for version 4.10.0 on 64 bit x86 SMP
ii linux-image-4.13.0-26-generic 4.13.0-26.29~16.04.2 amd64 Linux kernel image for version 4.13.0 on 64 bit x86 SMP
ii linux-image-4.13.0-31-generic 4.13.0-31.34~16.04.1 amd64 Linux kernel image for version 4.13.0 on 64 bit x86 SMP
ii linux-image-4.13.0-32-generic 4.13.0-32.35~16.04.1 amd64 Linux kernel image for version 4.13.0 on 64 bit x86 SMP
ii linux-image-4.13.0-36-generic 4.13.0-36.40~16.04.1 amd64 Linux kernel image for version 4.13.0 on 64 bit x86 SMP
ii linux-image-4.13.0-37-generic 4.13.0-37.42~16.04.1 amd64 Linux kernel image for version 4.13.0 on 64 bit x86 SMP
ii linux-image-4.13.0-38-generic 4.13.0-38.43~16.04.1 amd64 Linux kernel image for version 4.13.0 on 64 bit x86 SMP
ii linux-image-4.13.0-39-generic 4.13.0-39.44~16.04.1 amd64 Linux kernel image for version 4.13.0 on 64 bit x86 SMP
ii linux-image-4.13.0-41-generic 4.13.0-41.46~16.04.1 amd64 Linux kernel image for version 4.13.0 on 64 bit x86 SMP
ii linux-image-4.13.0-43-generic 4.13.0-43.48~16.04.1 amd64 Linux kernel image for version 4.13.0 on 64 bit x86 SMP
ii linux-image-4.13.0-45-generic 4.13.0-45.50~16.04.1 amd64 Linux kernel image for version 4.13.0 on 64 bit x86 SMP
ii linux-image-4.15.0-24-generic 4.15.0-24.26~16.04.1 amd64 Signed kernel image generic
ii linux-image-4.15.0-29-generic 4.15.0-29.31~16.04.1 amd64 Signed kernel image generic
ii linux-image-4.15.0-30-generic 4.15.0-30.32~16.04.1 amd64 Signed kernel image generic
ii linux-image-4.15.0-32-generic 4.15.0-32.35~16.04.1 amd64 Signed kernel image generic
ii linux-image-4.15.0-33-generic 4.15.0-33.36~16.04.1 amd64 Signed kernel image generic
ii linux-image-4.15.0-34-generic 4.15.0-34.37~16.04.1 amd64 Signed kernel image generic
ii linux-image-4.15.0-36-generic 4.15.0-36.39~16.04.1 amd64 Signed kernel image generic
ii linux-image-4.15.0-39-generic 4.15.0-39.42~16.04.1 amd64 Signed kernel image generic
ii linux-image-4.15.0-42-generic 4.15.0-42.45~16.04.1 amd64 Signed kernel image generic
ii linux-image-4.15.0-43-generic 4.15.0-43.46~16.04.1 amd64 Signed kernel image generic
ii linux-image-4.15.0-45-generic 4.15.0-45.48~16.04.1 amd64 Signed kernel image generic
ii linux-image-4.15.0-46-generic 4.15.0-46.49~16.04.1 amd64 Signed kernel image generic
ii linux-image-4.15.0-47-generic 4.15.0-47.50~16.04.1 amd64 Signed kernel image generic
ii linux-image-4.15.0-50-generic 4.15.0-50.54~16.04.1 amd64 Signed kernel image generic
ii linux-image-4.15.0-51-generic 4.15.0-51.55~16.04.1 amd64 Signed kernel image generic
ii linux-image-4.15.0-52-generic 4.15.0-52.56~16.04.1 amd64 Signed kernel image generic
ii linux-image-4.15.0-54-generic 4.15.0-54.58~16.04.1 amd64 Signed kernel image generic
ii linux-image-4.15.0-55-generic 4.15.0-55.60~16.04.2 amd64 Signed kernel image generic
ii linux-image-virtual-hwe-16.04 4.15.0.55.76 amd64 Virtual Linux kernel image
ii linux-modules-4.15.0-24-generic 4.15.0-24.26~16.04.1 amd64 Linux kernel extra modules for version 4.15.0 on 64 bit x86 SMP
ii linux-modules-4.15.0-29-generic 4.15.0-29.31~16.04.1 amd64 Linux kernel extra modules for version 4.15.0 on 64 bit x86 SMP
ii linux-modules-4.15.0-30-generic 4.15.0-30.32~16.04.1 amd64 Linux kernel extra modules for version 4.15.0 on 64 bit x86 SMP
ii linux-modules-4.15.0-32-generic 4.15.0-32.35~16.04.1 amd64 Linux kernel extra modules for version 4.15.0 on 64 bit x86 SMP
ii linux-modules-4.15.0-33-generic 4.15.0-33.36~16.04.1 amd64 Linux kernel extra modules for version 4.15.0 on 64 bit x86 SMP
ii linux-modules-4.15.0-34-generic 4.15.0-34.37~16.04.1 amd64 Linux kernel extra modules for version 4.15.0 on 64 bit x86 SMP
ii linux-modules-4.15.0-36-generic 4.15.0-36.39~16.04.1 amd64 Linux kernel extra modules for version 4.15.0 on 64 bit x86 SMP
ii linux-modules-4.15.0-39-generic 4.15.0-39.42~16.04.1 amd64 Linux kernel extra modules for version 4.15.0 on 64 bit x86 SMP
ii linux-modules-4.15.0-42-generic 4.15.0-42.45~16.04.1 amd64 Linux kernel extra modules for version 4.15.0 on 64 bit x86 SMP
ii linux-modules-4.15.0-43-generic 4.15.0-43.46~16.04.1 amd64 Linux kernel extra modules for version 4.15.0 on 64 bit x86 SMP
ii linux-modules-4.15.0-45-generic 4.15.0-45.48~16.04.1 amd64 Linux kernel extra modules for version 4.15.0 on 64 bit x86 SMP
ii linux-modules-4.15.0-46-generic 4.15.0-46.49~16.04.1 amd64 Linux kernel extra modules for version 4.15.0 on 64 bit x86 SMP
ii linux-modules-4.15.0-47-generic 4.15.0-47.50~16.04.1 amd64 Linux kernel extra modules for version 4.15.0 on 64 bit x86 SMP
ii linux-modules-4.15.0-50-generic 4.15.0-50.54~16.04.1 amd64 Linux kernel extra modules for version 4.15.0 on 64 bit x86 SMP
ii linux-modules-4.15.0-51-generic 4.15.0-51.55~16.04.1 amd64 Linux kernel extra modules for version 4.15.0 on 64 bit x86 SMP
ii linux-modules-4.15.0-52-generic 4.15.0-52.56~16.04.1 amd64 Linux kernel extra modules for version 4.15.0 on 64 bit x86 SMP
ii linux-modules-4.15.0-54-generic 4.15.0-54.58~16.04.1 amd64 Linux kernel extra modules for version 4.15.0 on 64 bit x86 SMP
ii linux-modules-4.15.0-55-generic 4.15.0-55.60~16.04.2 amd64 Linux kernel extra modules for version 4.15.0 on 64 bit x86 SMP
ii linux-virtual-hwe-16.04 4.15.0.55.76 amd64 Minimal Generic Linux kernel and headers
ii rsyslog 8.16.0-1ubuntu3 amd64 reliable system and kernel logging daemon
[email protected]:~#

Leave a Reply