Here’s my draft for submission. I have condensed it into a brief article for all to review.
@ankursinha FYI. Looking forward to guidance on the next steps on getting this into the quick-doc
[draft] quick-doc 1 - installing kernels from Koji
Koji is the build system Fedora developers use to build software for inclusion into Fedora. If there is a need to install a kernel different from the one that gets installed by default, these can be obtained from Koji.
koji package makes this process much easier.
$ sudo dnf install koji
- Download and install the kernel
Below is a one-liner that creates a new unique temporary directory, downloads RPMs to it and installs them. This assumes we are working with the
cd $(mktemp -d) && koji download-build --arch=x86_64 --arch=noarch kernel-5.12.18-200.fc33 && sudo dnf install *
This eliminates the need to clean up after installation and the risk of installing unwanted rpms accidentally.
[ credits to @augenauf ]
The following part of the above command downloads the kernel and its dependencies for the given architecture and kernel version.
koji download-build --arch=[arch] kernel-n.nn.nn-nnn.fcnn
where [arch] indicates the architecture i.e. x86_64
The following additional steps are often useful
- Set the default boot option - so this boots automatically subsequently
See quick-doc ( link to new quick-doc - draft 2 below )
- Add a versionlock to ensure this version is not deleted when kernel updates are installed
See quick-doc (Using the dnf versionlock plugin - Using the DNF software package manager :: Fedora Docs )