< Previous | Contents | Next >
9.2.1. Introduction and Prerequisites
Unsurprisingly, Debian and Kali manage the kernel in the form of a package, which is not how ker- nels have traditionally been compiled and installed. Since the kernel remains under the control of the packaging system, it can then be removed cleanly, or deployed on several machines. Further- more, the scripts associated with these packages automate the interaction with the bootloader and the initrd generator.
The upstream Linux sources contain everything needed to build a Debian package of the kernel but you still need to install the build-essential package to ensure that you have the tools required to
build a Debian package. Furthermore, the configuration step for the kernel requires the libncurses5- dev package. Finally, the fakeroot package will enable creation of the Debian package without need- ing administrative privileges.
# apt install build-essential libncurses5-dev fakeroot
# apt install build-essential libncurses5-dev fakeroot