Glkfu
Glkfu: Linux Kernel Package Builder
Glkfu is a powerful command-line tool designed to simplify the process of compiling and building Debian packages for Linux kernels. It streamlines the workflow for developers and system administrators who need to manage and deploy custom kernel versions on Debian-based systems.
Key Features and Usage
Glkfu offers a range of functionalities to assist in kernel package creation. Below are some common commands and their explanations:
Checking for Latest Kernel Versions
You can easily check for the latest stable kernel version available on kernel.org. This is useful for scripting or simply staying updated.
# View the major of the latest stable current version found on 'kernel.org'.
glkfu -o latest.maj
Automated Kernel Version Checks
Glkfu can automatically check if a new kernel version is available compared to your currently running system. This is particularly handy for automated tasks.
# Just check for a new kernel version than that which you're currently running.
# Useful for scripting or one-time executions.
glkfu -j
Full Automation for Kernel Building
For a completely hands-off experience, Glkfu can download, compile, and build packages for the latest stable kernel without user interaction. You can also specify resource usage, like limiting the number of CPU cores used.
# Download, compile, and build packages for the latest stable kernel without
# prompting the user, keeping all processed files, and using only the 1 core.
glkfu -y -k -c 1
Downloading Specific Kernel Tarballs
Glkfu allows you to download the tarball for the latest kernel version or specify an exact version, such as an LTS release, for download.
# Download tarball of the latest kernel version, ignoring the current version.
glkfu -d -i
# Download a specific tarball (in this case, the 5.10 LTS release) instead of
# just the latest one. Useful when you need an older kernel.
glkfu -O linux-5.10.tar.xz
Listing Available Kernel Versions
Get a comprehensive list of all available stable kernels from kernel.org, ordered chronologically. The current kernel version is highlighted for easy identification.
# List, in order, all of the available stable kernels found on 'kernel.org'. By
# default, and if color is available, the current kernel version -- that is, -
# the one you're using right now -- is highlighted in green.
glkfu -l