Results 1 to 2 of 2

Thread: how to remove old linux-image from grub boot/

  1. #1
    Join Date
    2017-Aug
    Posts
    1

    how to remove old linux-image from grub boot/

    after update kali linux runs really very slow and it laggs


    Code:
    DISTRIB_ID=Kali
    DISTRIB_RELEASE=kali-rolling
    DISTRIB_CODENAME=kali-rolling
    DISTRIB_DESCRIPTION="Kali GNU/Linux Rolling
    Code:
    root@kali:~# uname -r
    4.11.0-kali1-amd64
    Code:
    root@kali:~# update-grub
    Generating grub configuration file ...
    Found background image: /usr/share/images/desktop-base/desktop-grub.png
    Found linux image: /boot/vmlinuz-4.11.0-kali1-amd64
    Found initrd image: /boot/initrd.img-4.11.0-kali1-amd64
    Found linux image: /boot/vmlinuz-4.6.0-kali1-amd64
    Found initrd image: /boot/initrd.img-4.6.0-kali1-amd64
    Found Windows 10 on /dev/sda1

    Code:
    root@kali:~# dpkg -l | grep linux-im
    ii  linux-image-4.11.0-kali1-amd64            4.11.6-1kali1                        amd64        Linux 4.11 for 64-bit PCs
    ii  linux-image-4.6.0-kali1-amd64             4.6.4-1kali1                         amd64        Linux 4.6 for 64-bit PCs
    ii  linux-image-amd64                         4.11+82+kali1                        amd64        Linux for 64-bit PCs (meta-package)
    

    Code:
    root@kali:~# apt-get autoremove
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    Code:
    [Kali-cleaner]:Cleaning apt cache...
    [Kali-cleaner]:Removing old config files...
    No packages will be installed, upgraded, or removed.
    0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    Need to get 0 B of archives. After unpacking 0 B will be used.
                                             
    [Kali-cleaner]:Removing old kernels...
    No packages will be installed, upgraded, or removed.
    0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    Need to get 0 B of archives. After unpacking 0 B will be used.

  2. #2
    Join Date
    2016-Dec
    Posts
    806
    The same way you would on any other debian-based distribution: apt-get remove (or purge) linux-image-4.6.0-kali1-amd64

    Just FYI, this is a backup kernel, in case the current doesn't boot. You just sacrifice a few Mb for convenience (instead of having to boot a live CD to fix any boot issue.

Similar Threads

  1. Replies: 1
    Last Post: 2022-08-11, 23:53
  2. Remove GRUB on triple boot machine?
    By FranckTheMiner in forum TroubleShooting Archive
    Replies: 3
    Last Post: 2019-03-12, 01:52
  3. Remove Grub from Master Boot Record
    By subhamkashyap in forum Installing Archive
    Replies: 1
    Last Post: 2018-10-05, 15:30

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •