Is there a reason that Virtualmin keeps so many previous kernals?

Is there a reason that Virtualmin keeps so many previous kernals? Do we need all of them?

SYSTEM INFORMATION
Ubuntu Linux 22.04.4
7.9.0
dpkg --list | grep linux-image
ii  linux-image-5.15.0-100-generic         5.15.0-100.110                               amd64        Signed kernel image generic
ii  linux-image-5.15.0-101-generic         5.15.0-101.111                               amd64        Signed kernel image generic
rc  linux-image-5.15.0-25-generic          5.15.0-25.25                                 amd64        Signed kernel image generic
rc  linux-image-5.15.0-56-generic          5.15.0-56.62                                 amd64        Signed kernel image generic
rc  linux-image-5.15.0-57-generic          5.15.0-57.63                                 amd64        Signed kernel image generic
rc  linux-image-5.15.0-58-generic          5.15.0-58.64                                 amd64        Signed kernel image generic
rc  linux-image-5.15.0-60-generic          5.15.0-60.66                                 amd64        Signed kernel image generic
rc  linux-image-5.15.0-67-generic          5.15.0-67.74                                 amd64        Signed kernel image generic
ii  linux-image-5.15.0-71-generic          5.15.0-71.78                                 amd64        Signed kernel image generic
ii  linux-image-5.15.0-72-generic          5.15.0-72.79                                 amd64        Signed kernel image generic
ii  linux-image-5.15.0-73-generic          5.15.0-73.80                                 amd64        Signed kernel image generic
ii  linux-image-5.15.0-75-generic          5.15.0-75.82                                 amd64        Signed kernel image generic
ii  linux-image-5.15.0-76-generic          5.15.0-76.83                                 amd64        Signed kernel image generic
ii  linux-image-5.15.0-78-generic          5.15.0-78.85                                 amd64        Signed kernel image generic
ii  linux-image-5.15.0-79-generic          5.15.0-79.86                                 amd64        Signed kernel image generic
ii  linux-image-5.15.0-82-generic          5.15.0-82.91                                 amd64        Signed kernel image generic
ii  linux-image-5.15.0-83-generic          5.15.0-83.92                                 amd64        Signed kernel image generic
ii  linux-image-5.15.0-84-generic          5.15.0-84.93                                 amd64        Signed kernel image generic
ii  linux-image-5.15.0-86-generic          5.15.0-86.96                                 amd64        Signed kernel image generic
ii  linux-image-5.15.0-87-generic          5.15.0-87.97                                 amd64        Signed kernel image generic
ii  linux-image-5.15.0-88-generic          5.15.0-88.98                                 amd64        Signed kernel image generic
ii  linux-image-5.15.0-89-generic          5.15.0-89.99                                 amd64        Signed kernel image generic
ii  linux-image-5.15.0-91-generic          5.15.0-91.101                                amd64        Signed kernel image generic
ii  linux-image-5.15.0-92-generic          5.15.0-92.102                                amd64        Signed kernel image generic
ii  linux-image-5.15.0-94-generic          5.15.0-94.104                                amd64        Signed kernel image generic
ii  linux-image-5.15.0-97-generic          5.15.0-97.107                                amd64        Signed kernel image generic
rc  linux-image-5.4.0-105-generic          5.4.0-105.119                                amd64        Signed kernel image generic
rc  linux-image-5.4.0-62-generic           5.4.0-62.70                                  amd64        Signed kernel image generic
ii  linux-image-generic                    5.15.0.101.98                                amd64        Generic Linux kernel image

Virtualmin does no such thing. Virtualmin is not your package manager.

Just run the following after kernel updates:

apt clean && apt autoclean && apt autoremove

You can also automate this by creating a bash script that runs the above whenever a kernel update happens.

Yes… but we are always told to not do things outside of Virtualmin… So if we are updating via Virtualmin…

Who told you that? Certainly not me or our documentation.

Though I would recommend being careful with autoremove. You need to read what it’s doing and make sure you understand what it’s removing before approving it.

Note the search term. linux-image

1 Like

Beauty, thanks…

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.