Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have a machine running Debian stable, and I'd like to update the stock kernel to the latest kernel available in the backports repository. There are many kernel-related packages and virtual packages--what is the right way to do this and get the appropriate packages upgraded?

share|improve this question

1 Answer 1

up vote 5 down vote accepted

Use a meta package (e.g. linux-image-2.6-686), depending on which you want to use. This is so that if the real package name changes (which is very often), you won't lag behind. To determine which meta package to use, have a look at the name of the kernel package you are running. Also, do read the package descriptions of the meta packages that seem like the right ones, just to make sure.

Supposing that you have updated your "/etc/sources.list" file (instructions), run this (as root):

apt-get -t squeeze-backports install linux-image-2.6-686

Once you have done that, there is no need to keep re-running the command to check if a newer package is available because your normal apt-get update && apt-get upgrade will do the check for you and upgrade it. Note that this behavior is new (since Squeeze), and in the older days, you had to APT pinning.

share|improve this answer
    
Thanks! What about updating the kernel headers and sources to the latest versions? –  jrdioko Oct 31 '11 at 20:52
    
You follow a similar process. That is, instead of image, use headers and source. Use aptitude search. –  Tshepang Nov 1 '11 at 7:44

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.