1. 설치된 이미지 리스트 조회
$ dpkg -l | grep -i linux-image
2. 이미지 삭제 (예, linux-image-6.14.0-28-generic 이미지 삭제 시)
$ sudo apt purge linux-image-6.14.0-28-generic
3. 부트로더 업데이트
$ update-grub
[ 실행 로그 ]
$ dpkg -l | grep -i linux-image
rc linux-image-6.17.0-40-generic 6.17.0-40.40~24.04.1 amd64 Signed kernel image generic
rc linux-image-7.0.0-28-generic 7.0.0-28.28~24.04.1 amd64 Signed kernel image generic
rc linux-image-7.0.0-29-generic 7.0.0-29.29~24.04.2 amd64 Signed kernel image generic
ii linux-image-7.0.0-30-generic 7.0.0-30.30~24.04.1 amd64 Signed kernel image generic
ii linux-image-7.0.0-31-generic 7.0.0-31.31~24.04.1 amd64 Signed kernel image generic
ii linux-image-generic-hwe-24.04 7.0.0-31.31~24.04.1 amd64 Generic Linux kernel image
gangserver@RC530-U0407:~$ sudo apt purge linux-image-7.0.0-28-generic
패키지 목록을 읽는 중입니다... 완료
의존성 트리를 만드는 중입니다... 완료
상태 정보를 읽는 중입니다... 완료
다음 패키지를 지울 것입니다:
linux-image-7.0.0-28-generic*
0개 업그레이드, 0개 새로 설치, 1개 제거 및 3개 업그레이드 안 함.
이 작업 후 0 바이트의 디스크 공간을 더 사용하게 됩니다.
계속 하시겠습니까? [Y/n] y
(데이터베이스 읽는중 ...현재 244493개의 파일과 디렉터리가 설치되어 있습니다.)
Purging configuration files for linux-image-7.0.0-28-generic (7.0.0-28.28~24.04.
1) ...
gangserver@RC530-U0407:~$ sudo update-grub
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-7.0.0-30-generic
Found initrd image: /boot/initrd.img-7.0.0-30-generic
Found memtest86+ 64bit EFI image: /boot/memtest86+x64.efi
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done