LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 03-13-2007, 06:50 PM   #1
nick623
Member
 
Registered: Dec 2004
Distribution: Fedora, Ubuntu
Posts: 83

Rep: Reputation: 15
how are kernel updates handled?


I've been using Fedora for a while. I've currently have Fedora on my other computer and just recently installed edgy on my other. So far I'm very pleased especially with the package management setup.

My question is how are kernel-updates handled? Are they updated automatically? Can I choose a newer or older kernel at boot up?

Also Is it true that aptitude removes dependencies while uninstalling packages and apt-get does not? This is why I have decided to use aptitude instead of apt-get or it's front-end synaptic.
 
Old 03-14-2007, 01:01 AM   #2
binary_y2k2
Member
 
Registered: Jul 2005
Location: England, UK
Distribution: Ubuntu 8.04 Server, Kubuntu 12.04
Posts: 698
Blog Entries: 1

Rep: Reputation: 31
Kernel updates are processed the same as other updates, if there is a new version, you'll be prompted to download and install it.
Different versions are install with different package names tho. Eg: you can have 2.6.17-10 and 2.6.17-11 installed at the same time, and choose which to boot from GRUB. It's done by the package "linux-image-generic" (or -386, -686, etc), that will always depend on the latest available kernel

Aptitude normally does remove orphaned dependences, yes
 
Old 03-14-2007, 01:09 AM   #3
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 61
You can choose whichever kernel you want at boot time. If you don't use the old version of the kernel, you can remove it using Aptitude. Make sure you only do this after you have made sure the new kernel is working properly

Aptitude is generally more advanced than apt-get. If a package is installed as a dependency, and then the package that requested it be installed is removed then the dependency package will be removed as well.

It is possible, to change this behaviour. See the man page if you are interested.

--ian
 
Old 03-14-2007, 08:44 AM   #4
nick623
Member
 
Registered: Dec 2004
Distribution: Fedora, Ubuntu
Posts: 83

Original Poster
Rep: Reputation: 15
Thanks for the information. I have another question when I use aptitude to update I get the following message:

"The following packages have been automatically kept back:
linux-image-generic linux-restricted-modules-generic
The following packages have been kept back:
linux-headers-generic"

Are these packages being "kept back" for dependency issues. Or should I try to install these. And if so how if aptitude has "kept back" these packages?
Are these actually newer kernel versions that I should install. If so how do I make aptitude install these?

Thanks.

Last edited by nick623; 03-14-2007 at 08:47 AM.
 
Old 03-14-2007, 08:18 PM   #5
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 61
What kernel do you have installed? Run:
Code:
uname -a
to find out.

When you upgrade with aptitude, do a "dist-upgrade" rather than a normal upgrade:
Code:
sudo aptitude dist-upgrade
--Ian
 
Old 03-14-2007, 08:37 PM   #6
binary_y2k2
Member
 
Registered: Jul 2005
Location: England, UK
Distribution: Ubuntu 8.04 Server, Kubuntu 12.04
Posts: 698
Blog Entries: 1

Rep: Reputation: 31
upgrade simply updates the packages you have installed, dist-upgrade not only does that, but also will install any packages that those updates need. New kernels for example
 
Old 03-15-2007, 08:24 AM   #7
nick623
Member
 
Registered: Dec 2004
Distribution: Fedora, Ubuntu
Posts: 83

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by IBall
What kernel do you have installed? Run:
Code:
uname -a
to find out.

When you upgrade with aptitude, do a "dist-upgrade" rather than a normal upgrade:
Code:
sudo aptitude dist-upgrade
--Ian
"newbie@newbie-desktop:~$ uname -a
Linux newbie-desktop 2.6.17-10-generic #2 SMP Tue Dec 5 22:28:26 UTC 2006 i686 GNU/Linux"

Is using the "dist-upgrade" a normal option?
Or is it used just to install a new kernel?

Last edited by nick623; 03-15-2007 at 06:12 PM.
 
Old 03-16-2007, 12:42 AM   #8
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 61
You should normally use dist-upgrade.

You can search google for more info, but basically upgrade just updates each installed package to the recent version. It does not install new packages at all - if an updated package has a dependency that is not already installed then that package is not updated.

dist-upgrade, on the other hand, will intelligently resolve dependencies.

--Ian
 
Old 03-16-2007, 09:45 PM   #9
nick623
Member
 
Registered: Dec 2004
Distribution: Fedora, Ubuntu
Posts: 83

Original Poster
Rep: Reputation: 15
Thanks I used the 'sudo aptitude dist-upgrade' and it updated my kernel and now I have two kernels to choose during boot.

I've been some googling and I starting to understand the debian package management tools a little more.
 
  


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
Logs - how are they handled TL_CLD Slackware 2 09-15-2006 03:43 PM
how are multiple default gateways handled? eantoranz Linux - Networking 9 06-01-2005 02:09 PM
2 INet IP addresses Handled by 1 Firewall scardog Linux - Networking 3 02-15-2004 11:31 AM
How well is FAT32 handled? GAWd Linux - Newbie 3 12-13-2003 05:38 PM
how packets handled at kernel level valib4u Programming 5 09-14-2003 03:58 AM


All times are GMT -5. The time now is 12:58 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration