![where does rpm kernel source unpack where does rpm kernel source unpack](https://www.redhat.com/sysadmin/sites/default/files/styles/embed_large/public/2020-06/epel-repo-20200601.png)
The details of using menuconfig to set up a kernel build are beyond the scope of this guide. This can be done by calling the make menuconfig command. If you need to make changes or if you decide to reconfigure everything from scratch, you must take the time to configure your kernel. config file in the directory containing the kernel sources. In this case, and rather than reconfiguring everything from scratch, it is sufficient to copy the /boot/config-version file (the version is that of the kernel currently used, which can be found with the uname -r command) into a. When recompiling a more recent version of the kernel (possibly with an additional patch), the configuration will most likely be kept as close as possible to that proposed by Kali Linux.
![where does rpm kernel source unpack where does rpm kernel source unpack](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7b/Free_and_open-source-software_display_servers_and_UI_toolkits.svg/500px-Free_and_open-source-software_display_servers_and_UI_toolkits.svg.png)
mkdir -p cd tar -xaf /usr/src/linux-source-4.9.tar.xz You must extract these files in a new directory (not directly under /usr/src/, since there is no need for special permissions to compile a Linux kernel).
WHERE DOES RPM KERNEL SOURCE UNPACK ARCHIVE
Notice that the package contains /usr/src/linux-source-4.9.tar.xz, a compressed archive of the kernel sources. Linux-config-4.9 linux-source-4.9.tar.xz The following NEW packages will be installed:Ġ upgraded, 3 newly installed, 0 to remove and 0 not upgraded.Īfter this operation, 95.8 MB of additional disk space will be ls /usr/src The following additional packages will be installed:
WHERE DOES RPM KERNEL SOURCE UNPACK INSTALL
Note that we install a binary package containing the upstream sources, we do not retrieve the Kali source package named linux. We assume that the linux-source-4.9 binary package has been installed. The remainder of this section focuses on the 4.9 version of the Linux kernel, but the examples can, of course, be adapted to the particular version of the kernel that you want. sudo apt install -y build-essential libncurses5-dev fakeroot xz-utilsĭownload the Kali Linux Kernel Source Code Start by installing all the build dependencies for recompiling the kernel. Note that global wireless injection patches are already present by default in the Kali Linux kernel. The following guide will describe how the Kali Linux kernel can be quickly modified and recompiled for your needs. The customizability of Kali Linux extends all the way down into the Linux kernel.ĭepending on your requirements, you might want to add drivers, patches, or kernel features that are not included in the stock Kali Linux kernel.