Debian/Kernel Package

From Linux Hints

Jump to: navigation, search

It's not always obvious to new users how to make a Debian kernel package, and the manual page lists a bunch of options you don't generally need. Here's the quick version:

  • Install kernel-package
apt-get install kernel-package
  • Inside your kernel source tree once you've done make menuconfig (or similar):
fakeroot make-kpkg --revision=1 binary-arch

This results in two .deb package files in the directory above which you will want to install (use dpkg -i <package names>)

If you upgrade your sources (generally, by applying the latest kernel patch), then you probably want:

make-kpkg clean
make oldconfig 

The latter will show you any updated options in the kernel. Then you can rerun the command above to generate packages for the new kernel version. You probably also want to run module-assistant (just 'm-a') if you have binary only drivers such as for NVidia cards.

Personal tools
related