2020年3月13日 星期五

Ubuntu OS 透過 apt-get install 直接update kernel

** 使用ubuntu OS支援不用compiler直接update kernel

1.  搜尋支援的kernel
    # sudo apt-cache search linux-image-*
 
    linux-image-4.8.0-56-generic - Linux kernel image for version 4.8.0 on 64 bit x86 SMP
    linux-image-4.8.0-58-generic - Linux kernel image for version 4.8.0 on 64 bit x86 SMP
    ...
 
2.  開始安裝kernel
    # sudo apt-get install linux-image-4.8.0-56-generic
 
    如果有其他需求,像是編譯模組,可以連headers都裝上
    # sudo apt-get install linux-headers-4.8.0-56-generic
 
3.  安裝後,更新initramfs image,詳細 man update-initramfs
    Update the initramfs of the newest kernel:
    # update-initramfs -u
            or
    Create the initramfs for a specific kernel:
    # update-initramfs -c -k 4.8.0-58-generic
 
4.  接著更新grub清單,完成!
    # sudo update-grub

沒有留言:

張貼留言