Skip to content

Instantly share code, notes, and snippets.

@goffinet
Last active February 5, 2017 23:17
Show Gist options
  • Select an option

  • Save goffinet/559f5e176fc60e14841e6ae033e1ad93 to your computer and use it in GitHub Desktop.

Select an option

Save goffinet/559f5e176fc60e14841e6ae033e1ad93 to your computer and use it in GitHub Desktop.
deban jessie kernel update to 4.9.8
#!/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