升級linux內核


安裝pipework

git config --global http.sslVerify false

git clone https://github.com/jpetazzo/pipework

root@siajk155cna:~# cp ~/pipework/pipework /usr/local/bin/

root@siajk155cna:~# which pipework 

/usr/local/bin/pipework


升級linux內核

grep menuentry /boot/grub/grub.cfg


查看目前

dpkg -l|grep linux-image

dpkg -l |grep kernel  ---this

dpkg -l|grep linux

dpkg --get-selections|grep linux  查看目前系統的內核/鏡像


搜索可安裝

apt-cache search linux-image目前版本庫有4.2.0和4.4.0

apt-cache search linux |grep 4.2

apt-cache search linux |grep 4.4  ---this這種搜索方法


2個image文件(不要extra也行)2個head文件即可

apt-get install -y linux-generic-lts-wily  linux-headers-4.2.0-27 linux-headers-4.2.0-27-generic linux-headers-generic-lts-wily linux-image-4.2.0-27-generic linux-image-extra-4.2.0-27-generic linux-image-generic-lts-wily

apt-get install -y linux-image-4.4.0-21-generic linux-image-extra-4.4.0-21-generic  linux-headers-4.4.0-21-generic linux-headers-4.4.0-21


安裝後查看一下應該多出來內核了

grep menuentry /boot/grub/grub.cfg


更新/etc/default/grub

#GRUB_DEFAULT=0

GRUB_DEFAULT="1>2"

GRUB_HIDDEN_TIMEOUT=0

GRUB_HIDDEN_TIMEOUT_QUIET=true


reboot機器

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章