Monday, November 23, 2009

Downloading Kernel Source

Fedora:
yum install yum-utils rpmdevtools
yumdownloader --source kernel
yum-builddep kernel-.src.rpm
rpm -ivh kernel-##.src.rpm
rpmbuild -bp --target=$(uname -m) /usr/src/redhat/rpmbuild/SPECS/kernel.spec

Ubuntu:
sudo apt-get install linux-source

No comments: