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
    613
    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. Black screen after boot - kali linux virtual image
    By Kargo in forum General Archive
    Replies: 2
    Last Post: 2017-09-11, 10:38
  2. How do I tell Kali Linux on USB to boot up with the latest image?
    By kalidude in forum TroubleShooting Archive
    Replies: 12
    Last Post: 2016-09-01, 04:10
  3. How to remove boot option?
    By JeRM in forum Installing Archive
    Replies: 0
    Last Post: 2015-03-11, 18:06
  4. Remove Post Boot Messages
    By localhost in forum General Archive
    Replies: 0
    Last Post: 2014-08-27, 16:45
  5. How to remove two options in boot-up
    By DrDinosaur in forum General Archive
    Replies: 2
    Last Post: 2013-12-02, 04: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
  •