LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-09-2005, 10:51 AM   #1
halfpower
Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 244

Rep: Reputation: 31
apt-get upgrade does not upgrade my kernel


Why is my kernel not upgraded when I run the following command?
Code:
apt-get upgrade
Is the kernel not a package?
 
Old 12-09-2005, 11:16 AM   #2
dastrike
Member
 
Registered: Apr 2004
Location: Stockholm, Sweden
Distribution: Debian 'sid'
Posts: 250

Rep: Reputation: 30
The kernel packages are named:

In Debian 3.1 stable 'sarge':
kernel-image-2.4-...
kernel-image-2.6-...
In Debian testing/unstable 'etch'/'sid':
linux-image-...

Where the "..." part is some suffix for the various available kernels.
To see a list of all avaialble kernels, execute
In Debian 3.1 stable 'sarge':
Code:
apt-cache search kernel-image- --names-only
In Debian testing/unstable 'etch'/'sid':
Code:
apt-cache search linux-image- --names-only
To install the latest kernel of a particular hardware optimization, install the metapackage that doesn't specify any exact kernel version

E.g. the latest available Linux 2.6 kernel for AMD Athlon/AthlonXP/Duron/Sempron(32-bit) (and also Athlon 64 systems if you want to run a 32-bit kernel on them) systems on Debian 'sarge': kernel-image-2.6-k7

E.g. The latest available Linux kernel on Intel Pentium 4 systems supporting hyper-threading on Debian 'etch' or 'sid':
linux-image-686-smp

... and so on. Just install the kernel package of your liking.

Last edited by dastrike; 12-09-2005 at 11:18 AM.
 
Old 12-09-2005, 11:33 AM   #3
victorh
Member
 
Registered: Jul 2005
Location: La Paz, Bolivia
Distribution: Debian Sarge - Sid, Slackware, Gentoo, openSuse, Fedora, Ubuntu, Mandriva
Posts: 241

Rep: Reputation: 30
When you execute
Code:
apt-get upgrade
you will also upgrade the kernel if there's a new one available for your release.

What happened next is more tricky, the new kernel is installed in the /boot directory, so in order to use the new kernel you have to edit either the file menu.lst in GRUB or the appropriate one in LILO. When you are upgrading the kernel you must reboot in order to load the new one.

If you're using specific modules for the kernel (nvida module in my case) you must install also the headers of the new kernel and compile again the modules that you have. Only then you'll be using the new kernel.
 
Old 12-09-2005, 12:11 PM   #4
michapma
Member
 
Registered: Oct 2003
Location: Zürich
Distribution: Debian
Posts: 537

Rep: Reputation: 39
In general, you are more likely to get help if you give pertinent information, such as what version of Debian you're running. It also lightens the burden of anybody who responds to your question; they won't have to guess the missing info and can provide more concise answers.

You will save yourself a lot of time and questions here:
http://www.debian.org/doc/user-manuals#apt-howto
 
Old 12-09-2005, 07:32 PM   #5
divukman
Member
 
Registered: Sep 2005
Location: Split, Croatia
Distribution: Gentoo/Debian
Posts: 140
Blog Entries: 8

Rep: Reputation: 15
Question

pardon my ignorance but one question please, does "apt-get upgrade" upgrade custom kernels as well ? I think not, but have to ask .

Last edited by divukman; 12-09-2005 at 07:39 PM.
 
Old 12-11-2005, 10:53 AM   #6
michapma
Member
 
Registered: Oct 2003
Location: Zürich
Distribution: Debian
Posts: 537

Rep: Reputation: 39
Quote:
Originally Posted by divukman
pardon my ignorance but one question please, does "apt-get upgrade" upgrade custom kernels as well ? I think not, but have to ask .
http://www.debian.org/doc/manuals/de...kernel.en.html
http://www.debian.org/doc/manuals/re...kernel-details

Have fun.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apt-get question: dist-upgrade vs upgrade Arodef Fedora 9 06-15-2012 02:33 PM
Can't apt-get After Kernel Upgrade halfpower Debian 8 10-13-2005 12:38 PM
Kernel Panic 2.6.7, 4TH Release via apt-get upgrade Outabux Debian 1 08-12-2004 01:05 AM
Is it possible to upgrade kernel with apt-get? davidas Debian 16 04-14-2004 12:00 PM
What's the difference between apt-get upgrade and apt-get dist-upgrade? davidas Linux - Newbie 4 04-04-2004 09:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 01:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration