LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-28-2012, 07:09 AM   #1
infoslaw
Member
 
Registered: Oct 2011
Location: Belfast
Distribution: Arch Linux x86_64 + Plasma KDE
Posts: 66

Rep: Reputation: Disabled
How to update Linux Kernel?


Hi Everybody!

Does someone know how to update kernel on Debian?

Regularly I pick up nightly updates on Debian wheezy amd64 also seem updated new version of kernel 3.2 but unfortunately after apt-get upgrade still is 3.1.0-1.

Does someone know which command let me "run" kernel upgrade?

Thank you in advice,
Slav
 
Old 02-28-2012, 07:13 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852
Wheezy has a 3.2 kernel, so if you do
Code:
apt-get update
apt-get dist-upgrade
you should be fine.
 
Old 02-28-2012, 07:23 AM   #3
infoslaw
Member
 
Registered: Oct 2011
Location: Belfast
Distribution: Arch Linux x86_64 + Plasma KDE
Posts: 66

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TobiSGD View Post
Wheezy has a 3.2 kernel, so if you do
Code:
apt-get update
apt-get dist-upgrade
you should be fine.

$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

when gone this kernel 3.2?

Maybe I deleted by pressing apt-get autoclean or apt-get autoremove after last software upgrade?
 
Old 02-28-2012, 07:27 AM   #4
infoslaw
Member
 
Registered: Oct 2011
Location: Belfast
Distribution: Arch Linux x86_64 + Plasma KDE
Posts: 66

Original Poster
Rep: Reputation: Disabled
F.e. in synaptic I can find package: Header files for Linux 3.2.0-1-amd64

but when I make:

uname -a

Linux [name] 3.1.0-1-amd64 #1 SMP Tue Jan 10 05:01:58 UTC 2012 x86_64 GNU/Linux

Something wrong here?
 
Old 02-28-2012, 07:39 AM   #5
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Use apt-get command. First find your kernel version:
Code:
$ uname -r
Next find available kernel images:
Code:
$ apt-cache search linux-image
Now install kernel by explicitly specifying version number:
Code:
# apt-get install linux-image-x.x.x-xx
OR
Code:
$ sudo apt-get install linux-image-x.x.x-xx
 
1 members found this post helpful.
Old 02-28-2012, 07:40 AM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852
Did you by any chance installed the kernel manually and haven't chosen the appropriate metapackage? If you don't have the metapackage installed the kernel will not update to a newer version, AFAIK. You have to do that manually instead.
 
Old 02-28-2012, 07:55 AM   #7
Stephen Morgan
Member
 
Registered: Feb 2011
Location: England
Distribution: Slackware
Posts: 163

Rep: Reputation: 17
uname shows the kernel currently running, which won't upgrade until you restart the computer.
 
Old 02-28-2012, 08:16 AM   #8
infoslaw
Member
 
Registered: Oct 2011
Location: Belfast
Distribution: Arch Linux x86_64 + Plasma KDE
Posts: 66

Original Poster
Rep: Reputation: Disabled
Thank Thank everybody for quick replay. It show how good we are (open source community)!!!

Yes I did it:

~$ uname -r
3.1.0-1-amd64

~$ sudo apt-cache search linux-image

alsa-base - ALSA driver configuration files
linux-headers-3.2.0-1-amd64 - Header files for Linux 3.2.0-1-amd64
linux-headers-3.2.0-1-rt-amd64 - Header files for Linux 3.2.0-1-rt-amd64
linux-image-3.2.0-1-amd64 - Linux 3.2 for 64-bit PCs
linux-image-3.2.0-1-amd64-dbg - Debugging infos for Linux 3.2.0-1-amd64
linux-image-3.2.0-1-rt-amd64 - Linux 3.2 for 64-bit PCs, PREEMPT_RT
linux-image-3.2.0-1-rt-amd64-dbg - Debugging infos for Linux 3.2.0-1-rt-amd64
linux-image-2.6-amd64 - Linux for 64-bit PCs (dummy package)
linux-image-2.6-rt-amd64 - Linux for 64-bit PCs (dummy package)
linux-image-amd64 - Linux for 64-bit PCs (meta-package)
linux-image-rt-amd64 - Linux for 64-bit PCs (meta-package), PREEMPT_RT
linux-headers-3.1.0-1-amd64 - Header files for Linux 3.1.0-1-amd64
linux-image-3.1.0-1-amd64 - Linux 3.1 for 64-bit PCs

so now I should:

sudo apt-get install linux-image-3.2.0-1-amd64 ?

sorry I'm very carefully with linux kernel upgrade
 
Old 02-28-2012, 08:21 AM   #9
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Quote:
sudo apt-get install linux-image-3.2.0-1-amd64 ?
yes you should. After successful installation you have to reboot the system for changes to reflect.

Last edited by Satyaveer Arya; 02-28-2012 at 08:22 AM.
 
Old 02-28-2012, 08:45 AM   #10
infoslaw
Member
 
Registered: Oct 2011
Location: Belfast
Distribution: Arch Linux x86_64 + Plasma KDE
Posts: 66

Original Poster
Rep: Reputation: Disabled
Thank you very much especially to Satyaveer for help with upgrade linux image.

Like always LinuxQuestions.org - great community of knowledge!
 
Old 02-28-2012, 09:05 AM   #11
infoslaw
Member
 
Registered: Oct 2011
Location: Belfast
Distribution: Arch Linux x86_64 + Plasma KDE
Posts: 66

Original Poster
Rep: Reputation: Disabled
Sorry but come one question to my mind, now after upgrade grub show me to linux images 3.1 and 3.2
Can I uninstall previous linux image 3.1 and update grub?

Or maybe after:

sudo apt-cache search linux-image

alsa-base - ALSA driver configuration files
linux-headers-3.2.0-1-amd64 - Header files for Linux 3.2.0-1-amd64
linux-headers-3.2.0-1-rt-amd64 - Header files for Linux 3.2.0-1-rt-amd64
linux-image-3.2.0-1-amd64 - Linux 3.2 for 64-bit PCs
linux-image-3.2.0-1-amd64-dbg - Debugging infos for Linux 3.2.0-1-amd64
linux-image-3.2.0-1-rt-amd64 - Linux 3.2 for 64-bit PCs, PREEMPT_RT
linux-image-3.2.0-1-rt-amd64-dbg - Debugging infos for Linux 3.2.0-1-rt-amd64
linux-image-2.6-amd64 - Linux for 64-bit PCs (dummy package)
linux-image-2.6-rt-amd64 - Linux for 64-bit PCs (dummy package)
linux-image-amd64 - Linux for 64-bit PCs (meta-package)
linux-image-rt-amd64 - Linux for 64-bit PCs (meta-package), PREEMPT_RT
linux-headers-3.1.0-1-amd64 - Header files for Linux 3.1.0-1-amd64
linux-image-3.1.0-1-amd64 - Linux 3.1 for 64-bit PCs

I can clean not used images? I'm sorry but I'm not familiar with linux kernel, not have occasion before to interesting in
 
Old 02-28-2012, 09:07 AM   #12
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852
If your new kernel is working correctly it is no problem to remove the old ones, Grub should be automatically updated.
 
Old 02-28-2012, 09:14 AM   #13
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Quote:
Sorry but come one question to my mind, now after upgrade grub show me to linux images 3.1 and 3.2
Can I uninstall previous linux image 3.1 and update grub?
As per the last post of TobiSGD, ofcourse if your new kernel is working properly so there is no need to remove the old one and grub will be automatically updated, no need to worry about grub. And you can also login with the old kernel.
 
1 members found this post helpful.
Old 02-28-2012, 09:21 AM   #14
infoslaw
Member
 
Registered: Oct 2011
Location: Belfast
Distribution: Arch Linux x86_64 + Plasma KDE
Posts: 66

Original Poster
Rep: Reputation: Disabled
Thank you TobiSGD and Satyaveer for quick replay. Yes I not worry that is something in Grub which let me use previous kernel but if I would like to clean after job it's mean delete previous image?
Just apt-get remove or apt-get purge? It's also can save some space, have a right?

Regards,
Slav
 
Old 02-28-2012, 09:43 AM   #15
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Code:
# apt-get remove kernel-image-x.x.x-xx
x - refers to the previous kernel version which you want to remove.
 
  


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
how to Update a LINUX KERNEL shirazanjum Linux - Enterprise 14 10-22-2007 12:53 PM
How to update the linux kernel dgushin Linux - Laptop and Netbook 2 11-15-2006 06:14 PM
Latest Suse "YOU" update....Linux Kernel Update Failed Balarabay1 SUSE / openSUSE 10 06-11-2006 10:07 PM
linux kernel update erikm103 Linux - Software 2 03-09-2003 09:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:36 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration