Ubuntu This forum is for the discussion of Ubuntu Linux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-13-2007, 07:50 PM
|
#1
|
Member
Registered: Dec 2004
Distribution: Fedora, Ubuntu
Posts: 83
Rep:
|
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.
|
|
|
03-14-2007, 02:01 AM
|
#2
|
Member
Registered: Jul 2005
Location: England, UK
Distribution: Ubuntu 8.04 Server, Kubuntu 12.04
Posts: 698
Rep:
|
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
|
|
|
03-14-2007, 02:09 AM
|
#3
|
Senior Member
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088
Rep:
|
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
|
|
|
03-14-2007, 09:44 AM
|
#4
|
Member
Registered: Dec 2004
Distribution: Fedora, Ubuntu
Posts: 83
Original Poster
Rep:
|
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 09:47 AM.
|
|
|
03-14-2007, 09:18 PM
|
#5
|
Senior Member
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088
Rep:
|
What kernel do you have installed? Run:
to find out.
When you upgrade with aptitude, do a "dist-upgrade" rather than a normal upgrade:
Code:
sudo aptitude dist-upgrade
--Ian
|
|
|
03-14-2007, 09:37 PM
|
#6
|
Member
Registered: Jul 2005
Location: England, UK
Distribution: Ubuntu 8.04 Server, Kubuntu 12.04
Posts: 698
Rep:
|
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
|
|
|
03-15-2007, 09:24 AM
|
#7
|
Member
Registered: Dec 2004
Distribution: Fedora, Ubuntu
Posts: 83
Original Poster
Rep:
|
Quote:
Originally Posted by IBall
What kernel do you have installed? Run:
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 07:12 PM.
|
|
|
03-16-2007, 01:42 AM
|
#8
|
Senior Member
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088
Rep:
|
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
|
|
|
03-16-2007, 10:45 PM
|
#9
|
Member
Registered: Dec 2004
Distribution: Fedora, Ubuntu
Posts: 83
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 04:33 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|