The kernel source code installed by the linux-source package is installed in the form of a compressed archive in the /usr/src directory. For example, if you are running Ubuntu 14.04 LTS, the kernel source archive will be at /usr/src/linux-source-3.13.0.tar.bz2. You can unpack the source code in your current directory wherever you like to view it with
tar jxf /usr/src/linux-source-3.13.0.tar.bz2
If instead you would like to know how to get and prepare the kernel source for building your own custom kernel, see the Ubuntu help document on compiling your own kernel or these other questions and answers:
The kernel source code installed by the linux-source package is installed in the form of a compressed archive in the
/usr/src
directory. For example, if you are running Ubuntu 14.04 LTS, the kernel source archive will be at/usr/src/linux-source-3.13.0.tar.bz2
. You can unpack the source code in your current directory wherever you like to view it withIf instead you would like to know how to get and prepare the kernel source for building your own custom kernel, see the Ubuntu help document on compiling your own kernel or these other questions and answers:
In general, to find the files installed by a package, use
dpkg -L <packagename>