Languages: English | 简体中文
Build custom Linux kernel .deb packages with GitHub Actions, then install or remove them on Debian/Ubuntu with kernel-manager.sh.
- Builds Linux stable kernels from
linux-${kernel_version}.y. - Optionally applies the BBRv3 patch from a user‑specified URL.
- Publishes Release assets:
kernel-<version>.tar.gzconfig-<version>.tar.gz
- Installs, uninstalls, lists, and cleans downloaded kernels.
.github/workflows/build-kernel.yml Reusable build workflow
.github/workflows/trigger-stable.yml Build a standard stable kernel
.github/workflows/trigger-bbrv3.yml Build a BBRv3 kernel
config Kernel .config
kernel-manager.sh Install/uninstall helper
Run one of these workflows from GitHub Actions:
Build Latest Stable KernelBuild BBRv3 Kernel
For the standard stable kernel, set kernel_version only (e.g., 7.0). For the BBRv3 kernel, you must provide two inputs:
-
kernel_version– e.g., 6.12 -
bbr_patch_url– the full URL to download the BBRv3 patch file
The workflow creates a GitHub Release containing the built kernel packages.
On the target Debian/Ubuntu host:
curl -O https://raw.githubusercontent.com/hellooe/Latest-Kernel/main/kernel-manager.sh
chmod +x kernel-manager.shIf using your own repository:
export GITHUB_REPO="owner/repo"List versions:
./kernel-manager.sh listInstall:
./kernel-manager.sh install <version>Uninstall:
./kernel-manager.sh uninstall <version>Clean cache:
./kernel-manager.sh cleanThe script must run as root and requires dpkg, apt-get, tar, find, curl, jq and update-grub.
| Variable | Default |
|---|---|
GITHUB_REPO |
hellooe/Latest-Kernel |
DOWNLOAD_DIR |
/root/.cache/kernel-manager |
- Keep at least one known-good old kernel installed.
- Reboot after installing a new kernel.
- The script refuses to uninstall the currently running kernel.
- For BBRv3 builds, the patch source must be provided by the user at build time.
MIT. See LICENSE.