i am not new to Debian and used to use commands like "apt-get install <package>", "apt-get update", "apt-get upgrade" and "apt-cache search <string>" regulary.
But i never understood those Debian programs and the Debian package system with it´s numerous programs and way to install things and work on software and configurations ...
Now, i just wanted to do something that i thought to be realy easy.
Get the source of an existing package.
And despite spending over 3 hours - including reading the man-pages of commands - i cannot find a way!
This frustrates me to no end and finally, i subscribed here to get help.
What i want to do?
Two things:
dpkg --get-selections | grep openvz
linux-image-2.6-openvz-amd64 install
linux-image-2.6.26-2-openvz-amd64 install
I already don´t understand why i have two such packages installed ...
I would like to download the source of my kernel:
apt-get source linux-image-2.6.26-2-openvz-amd64
This downloaded linux-2.6_2.6.26-21lenny4.dsc, linux-2.6_2.6.26.orig.tar.gz and linux-2.6_2.6.26-21lenny4.diff.gz
Then, i wanted to patch this - having found no explanation, i did:
cd linux
patch < ../linux-2.6_2.6.26-21lenny4.diff
That seemed to patch the kernel ...
But i am not sure - there are new files like this now_
[...]
Only in linux-2.6-2.6.26: xenctrl-capabilities.patch
Only in linux-2.6-2.6.26: xenctrl.patch
Only in linux-2.6-2.6.26: xenctrl-privcmd.patch
[...]
So, how can download the complete Debian kernel source?
And what do i need to be able to complile it?
And - HOW to just list all available sources and search in them?!?
I found lots of webpages where tools like "make-kpkg" are used, which i do not understand again ...
Under SuSE, i could just select the package from a list, say "make oldconfig install modules modules_install" and be ready ...
Under Debian, i just find no way ...
Can anybody PLEASE help me?
Thank you very much

Frustrated about this, i triied to find newer source - but could not find a way to