Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'linux-image-5.3.0-29-lowlatency'for regex 'linux-image-5.3.0-29'
Note, selecting 'linux-image-5.3.0-29-generic'for regex 'linux-image-5.3.0-29'
Note, selecting 'linux-image-5.3.0-46-lowlatency'for regex 'linux-image-5.3.0-46'
Note, selecting 'linux-image-5.3.0-46-generic'for regex 'linux-image-5.3.0-46'
Note, selecting 'linux-modules-5.3.0-29-generic'for regex 'linux-modules-5.3.0-29'
Note, selecting 'linux-modules-5.3.0-29-lowlatency'for regex 'linux-modules-5.3.0-29'
Note, selecting 'linux-modules-5.3.0-46-lowlatency'for regex 'linux-modules-5.3.0-46'
Note, selecting 'linux-modules-5.3.0-46-generic'for regex 'linux-modules-5.3.0-46'
Note, selecting 'linux-modules-extra-5.3.0-29-generic'for regex 'linux-modules-extra-5.3.0-29'
Note, selecting 'linux-modules-extra-5.3.0-46-generic'for regex 'linux-modules-extra-5.3.0-46'
Package 'linux-image-5.3.0-29-lowlatency' is not installed, so not removed
Package 'linux-image-5.3.0-46-lowlatency' is not installed, so not removed
Package 'linux-modules-5.3.0-29-lowlatency' is not installed, so not removed
Package 'linux-modules-5.3.0-46-lowlatency' is not installed, so not removed
The following packages will be REMOVED:
linux-headers-5.3.0-29 linux-headers-5.3.0-29-generic linux-headers-5.3.0-46 linux-headers-5.3.0-46-generic
linux-image-5.3.0-29-generic linux-image-5.3.0-46-generic linux-modules-5.3.0-29-generic
linux-modules-5.3.0-46-generic linux-modules-extra-5.3.0-29-generic linux-modules-extra-5.3.0-46-generic
0 upgraded, 0 newly installed, 10 to remove and 0 not upgraded.
After this operation, 712 MB disk space will be freed.
Do you want to continue? [Y/n](Reading database ... 152772 files and directories currently installed.)
Removing linux-headers-5.3.0-29-generic (5.3.0-29.31)...
Removing linux-headers-5.3.0-29 (5.3.0-29.31)...
Removing linux-headers-5.3.0-46-generic (5.3.0-46.38)...
Removing linux-headers-5.3.0-46 (5.3.0-46.38)...
Removing linux-modules-extra-5.3.0-29-generic (5.3.0-29.31)...
Removing linux-image-5.3.0-29-generic (5.3.0-29.31)...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.3.0-29-generic
/etc/kernel/postrm.d/zz-update-grub:
Sourcing file`/etc/default/grub'
Sourcing file`/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.3.0-55-generic
Found initrd image: /boot/initrd.img-5.3.0-55-generic
Found linux image: /boot/vmlinuz-5.3.0-46-generic
Found initrd image: /boot/initrd.img-5.3.0-46-generic
done
Removing linux-modules-extra-5.3.0-46-generic (5.3.0-46.38) ...
Removing linux-image-5.3.0-46-generic (5.3.0-46.38) ...
I: /boot/vmlinuz.old is now a symlink to vmlinuz-5.3.0-55-generic
I: /boot/initrd.img.old is now a symlink to initrd.img-5.3.0-55-generic
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.3.0-46-generic
/etc/kernel/postrm.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file`/etc/default/grub.d/init-select.cfg'
Generating grub configuration file...
Found linux image: /boot/vmlinuz-5.3.0-55-generic
Found initrd image: /boot/initrd.img-5.3.0-55-generic
done
Removing linux-modules-5.3.0-29-generic (5.3.0-29.31)...
Removing linux-modules-5.3.0-46-generic (5.3.0-46.38)...
这里写自定义目录标题Ubuntu 通过正则表达式批量移除 Linux 内核及模块等文件查看 Ubuntu 下所有已经安装的 Linux 内核编写需要批量移除的 Linux 内核及模块等文件的正则表达式执行需要批量移除的 Linux 内核及模块等文件的正则表达式再次查看 Ubuntu 下所有已经安装的 Linux 内核确认不需要的 Linux 内核及模块等文件已移除同理也能用批量处理其他需要安装或者需要卸载的软件包Ubuntu 通过正则表达式批量移除 Linux 内核及模块等文件查看 Ubuntu 下所有