如何升級fedora kernel
更新記錄
item | note |
---|---|
20161104 | 第一版 |
目錄
如何升級fedora kernel
查看目前的kernel版本
- uname -r
1
2[root@localhost ~]# uname -r
4.6.5-300.fc24.x86_64
先查可以使用kernel
先查看目前有那些kernel可以使用
目前kernel有:4.6.5-300.fc24 , 4.8.4-200.fc24 可以使用
因此可以升級到 4.8.4-200.fc241
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33[root@localhost ~]# dnf list | grep kernel
abrt-addon-kerneloops.x86_64 2.8.2-1.fc24 @updates
kernel.x86_64 4.6.5-300.fc24 @updates
kernel-core.x86_64 4.6.5-300.fc24 @updates
kernel-headers.x86_64 4.6.5-300.fc24 @updates
kernel-modules.x86_64 4.6.5-300.fc24 @updates
kernel-modules-extra.x86_64 4.6.5-300.fc24 @updates
libreport-plugin-kerneloops.x86_64 2.7.2-1.fc24 @updates
erlang-kernel.x86_64 18.3.4.4-1.fc24 updates
kernel.x86_64 4.8.4-200.fc24 updates
kernel-core.x86_64 4.8.4-200.fc24 updates
kernel-cross-headers.x86_64 4.8.4-200.fc24 updates
kernel-debug.x86_64 4.8.4-200.fc24 updates
kernel-debug-core.x86_64 4.8.4-200.fc24 updates
kernel-debug-devel.x86_64 4.8.4-200.fc24 updates
kernel-debug-modules.x86_64 4.8.4-200.fc24 updates
kernel-debug-modules-extra.x86_64 4.8.4-200.fc24 updates
kernel-devel.x86_64 4.8.4-200.fc24 updates
kernel-headers.x86_64 4.8.4-200.fc24 updates
kernel-modules.x86_64 4.8.4-200.fc24 updates
kernel-modules-extra.x86_64 4.8.4-200.fc24 updates
kernel-rpm-macros.noarch 41-2.fc24 updates
kernel-tools.x86_64 4.8.4-200.fc24 updates
kernel-tools-libs.i686 4.8.4-200.fc24 updates
kernel-tools-libs.x86_64 4.8.4-200.fc24 updates
kernel-tools-libs-devel.i686 4.8.4-200.fc24 updates
kernel-tools-libs-devel.x86_64 4.8.4-200.fc24 updates
kernelshark.x86_64 2.6-2.fc24 updates
lirc-disable-kernel-rc.noarch 0.9.4a-1.fc24 updates
php-symfony-http-kernel.noarch 2.8.12-2.fc24 updates
texlive-l3kernel.noarch 5:svn38371.SVN_6002-24.fc24.1 fedora
texlive-l3kernel-doc.noarch 5:svn38371.SVN_6002-24.fc24.1 fedora
truezip-kernel.noarch 7.7.9-2.fc24 fedora說明
@update : 表示已安裝
update : 表示未安裝
已安裝的kenel會放到/boot目錄
dnf install kernel
- 安裝升級kernel
1
dnf install kernel-4.8.4-200.fc24.x86_64
如何增加新的kernel到grub2
grub2-mkconfig
將會依目前環境產生新的grub.cfg1
grub2-mkconfig -o /boot/grub2/grub.cfg
更新原本的grub.cfg即可(記得先backup)
/boot/boot/boot/grub2/grub.cfg
若在dnf list裡面沒有想要的kernel版本
If you want another kernel that is not listed, you can search at Koji download
其它
dnf list
List Command
Dumps lists of packages depending on the packages' relation to the system. A package is installed if it is present in the RPMDB, and it is available if it is not installed but it is present in a repository that DNF knows about. dnf [options] list [all] [<package-name-specs>...] Lists all packages known to us, present in the RPMDB, in a repo or in both. dnf [options] list installed [<package-name-specs>...] Lists installed packages. dnf [options] list available [<package-name-specs>...] Lists available packages.