Last active
February 5, 2017 23:17
-
-
Save goffinet/559f5e176fc60e14841e6ae033e1ad93 to your computer and use it in GitHub Desktop.
deban jessie kernel update to 4.9.8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| sudo apt update && apt update -yqq && apt dist-upgrade -yqq | |
| sudo apt install git fakeroot build-essential ncurses-dev xz-utils libssl-dev bc -yqq | |
| sudo apt install kernel-package -yqq | |
| wget https://www.kernel.org/pub/linux/kernel/v4.x/linux-4.9.8.tar.xz | |
| unxz linux-4.9.8.tar.xz | |
| wget https://www.kernel.org/pub/linux/kernel/v4.x/linux-4.9.8.tar.sign | |
| gpg2 --keyserver hkp://keys.gnupg.net --recv-keys 38DBBDC86092693E | |
| gpg2 --verify linux-4.9.8.tar.sign | |
| tar xvf linux-4.9.8.tar | |
| cd linux-4.9.8/ | |
| cp /boot/config-$(uname -r) .config | |
| make menuconfig | |
| make-kpkg clean | |
| fakeroot make-kpkg --initrd --revision=1.0.spec kernel_image kernel_headers -j 4 | |
| ls ../*.deb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment