Skip to main content
IBM  
Shop Support Downloads
IBM Home Products Consulting Industries News About IBM
IBM developerWorks : Linux : Education - Tutorials
LPI certification 102 exam prep, Part 2
ZIPPDF (letter)PDF (A4)e-mail
Main menuSection menuFeedbackPrevious
Next Section
3. Locating and downloading sources
  


Unpacking the kernel page 4 of 4


If you downloaded a new kernel from kernel.org, now it's time to unpack it. To do so, cd into /usr/src. If there is an existing "linux" directory there, move it to "linux.old" (mv linux linux.old, as root.)

Now, it's time to extract the new kernel. While still in /usr/src, type tar xzvf /path/to/my/kernel-x.y.z.tar.gz or cat /path/to/my/kernel-x.y.z.tar.bz2 | bzip2 -d | tar xvf -, depending on whether your sources are compressed with gzip or bzip2. After typing this, your new kernel sources will be extracted into a new "linux" directory. Beware -- the full kernel sources typically occupy more than 50 MB on disk!


Next Section
Main menuSection menuFeedbackPrevious
Privacy Legal Contact