Linux Archive

Linux Archive (
-   Debian User (
-   -   apt-get install linux-source vs apt-get source linux (

Nikolaus Rath 10-10-2012 02:51 PM

apt-get install linux-source vs apt-get source linux

I'd like to add a patch to the stock Debian wheezy kernel. According to, there are
two ways to do this.

Either I can install the linux-source package (apt-get install
linux-source), unzip the, apply my patch and run 'make deb-pkg'.

Or I can install the source of the linux-package (apt-get source linux),
and run 'fakeroot debian/rules source', apply my patch, and run
'fakeroot make -f debian/rules.gen binary-arch_amd64'.

Can someone explain to me which method I should use in which situation?

I have randomly picked the first method, and am very surprised that the
resulting kernel has version 3.2.23, while the stock wheezy kernel is
3.2.0. Shouldn't linux-source give me the sources for linux-image?



»Time flies like an arrow, fruit flies like a Banana.«

PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6 02CF A9AD B7F8 AE4E 425C

To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact

All times are GMT. The time now is 07:38 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.