LinuxQuestions.org
Register a domain and help support LQ
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 04-04-2004, 11:52 PM   #1
davidas
Member
 
Registered: Mar 2004
Distribution: Debian 'Sarge'
Posts: 168

Rep: Reputation: 30
Is it possible to upgrade kernel with apt-get?


If so, how?

Or do I have to stick to the classic method (download sources, extract, make menuconfig, make symbolic link, etc) as outlined by the debian reference at debian.org?

Thanks !
 
Old 04-05-2004, 12:28 AM   #2
detpenguin
Senior Member
 
Registered: Oct 2003
Location: lost in the midwest...
Distribution: Slackware
Posts: 1,091

Rep: Reputation: 45
in SuSE, it's possible with apt-get...there is a repository with kernals in it, i'm not sure if debian has it or not...but i would think it does.
 
Old 04-05-2004, 01:53 AM   #3
cdgeorge
LQ Newbie
 
Registered: Mar 2004
Distribution: woody
Posts: 7

Rep: Reputation: 0
Hello,

The package is called kernel-image-2.x.x where x x is the version you want to install. Of course you first need to check for the avalaible images.

I recommend going to http://packages.debian.org and look for them. You could also download it online .

For using apt-get you should check /etc/apt/sources.list for an entry that will contain your kernel image. (man sources.list if you don't know how to use it).

Please note that the kernel image installation probably won't do everything for you, but it won't damage (in my opinion) what you already have. So it's safe to try an installation. Also the kernel there is compiled to be flexible to user needs, but you might have problems with it. After kernel installation there might be programs that don't work anymore in whcih case you will need to upgrade.

Hope this helps.

Regards,
George
 
Old 04-05-2004, 10:02 AM   #4
efi360
Member
 
Registered: Feb 2004
Location: San Antonio, TX.
Distribution: Debian
Posts: 71

Rep: Reputation: 15
What catagorie is kernal-image under. at http://packages.debian.org/ .
Miscellaneous, Libraries, Base Utilities ???
looked around but did not see it
 
Old 04-05-2004, 05:52 PM   #5
comp12345
Member
 
Registered: Feb 2004
Posts: 467

Rep: Reputation: 30
It's under base. Why not just use the search function instead of trying to browse the directories.


http://packages.debian.org/cgi-bin/s...le&release=all
 
Old 04-06-2004, 12:48 AM   #6
efi360
Member
 
Registered: Feb 2004
Location: San Antonio, TX.
Distribution: Debian
Posts: 71

Rep: Reputation: 15
will take your advice next time there, thanks
 
Old 04-06-2004, 03:55 PM   #7
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
I upgraded kernel using apt-get just yesterday. Very cool of Debian!

I use Grub which, I think, makes kernel upgrades easier. In addition, I have file /etc/kernel-img.conf (that was already there after Debian installation) and it has these lines:

do_symlinks = yes
relative_links = yes
do_bootloader = no
do_bootfloppy = no
do_initrd = yes
link_in_boot = no
postinst_hook = /sbin/update-grub
postrm_hook = /sbin/update-grub

All I needed to do was 'apt-get install kernel-image-2.6-686' and the next time I rebooted, Grub gave me the option to boot into a Debian Sid system with i686-optimized kernel 2.6.4-1.

 
Old 04-06-2004, 07:23 PM   #8
nex6
Member
 
Registered: Apr 2004
Distribution: Ubuntu;Debain;Redhat
Posts: 46

Rep: Reputation: 16
Yes, you can upgrade kernels with apt,


to find a kernel:

apt-cache search kernel


then scroll thru the list and make sure you pick the correct one.



the just apt-get install kernel.x.x.x.x.x.x



enjoy


-nex6
 
Old 04-07-2004, 03:17 AM   #9
mobassir
Member
 
Registered: Jul 2003
Location: Pakistan
Distribution: Redhat , SME
Posts: 346

Rep: Reputation: 30
hello

i am using redhat and strugling with upgrading kernal. my linux version is
7.2 with default 2.4.7-10 kernal and want to upgrade it in 2.4.18-3,
but with tar file format i totaly faild or may i dont know proper procedure of upgradeing kernal in tar format.

then i download rpm its also faild .
if some know full anf proper methord of upgrading kernal in any file i will download relevent file format , please guied me step by step

thanks
 
Old 04-07-2004, 04:08 AM   #10
Spheerke
LQ Newbie
 
Registered: Apr 2004
Location: Belgium
Posts: 5

Rep: Reputation: 0
Quote:
Originally posted by Dead Parrot
I upgraded kernel using apt-get just yesterday. Very cool of Debian!

...

All I needed to do was 'apt-get install kernel-image-2.6-686' and the next time I rebooted, Grub gave me the option to boot into a Debian Sid system with i686-optimized kernel 2.6.4-1.

Very nice! Can you tell me which debian and kernel you started off before the upgrade?
 
Old 04-07-2004, 04:48 AM   #11
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
Well, originally I used a Sarge installer snapshot but I had already upgraded the system to Sid before I attempted the kernel upgrade. Just thought to mention that I use Sid because I'm not sure if 2.6.x kernel-images are yet in Sarge or Woody. Anyway, what impressed me was how easy it is to upgrade kernel from 2.4.x series to 2.6.x and to get it i686 optimized. No need to compile or anything! Some other distros could really learn from Debian. And because 'kernel-image-2.6-686' is a kind of 'meta-package' for the latest kernel in 2.6.x series, I'll expect that a simple 'apt-get dist-upgrade' will ensure that I'll always have the latest kernel from Sid repositories.
 
Old 04-07-2004, 04:57 AM   #12
Spheerke
LQ Newbie
 
Registered: Apr 2004
Location: Belgium
Posts: 5

Rep: Reputation: 0
I'll try to get my sarge to sid now by apt-get update and apt-get dist-upgrade then to see if my troubles are gone
 
Old 04-07-2004, 06:47 AM   #13
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
@Spheerke:

If nothing else seems to work, you might want to try a fresh installation using the new Sarge installer (either beta 3 or a daily built snapshot) :

http://www.debian.org/devel/debian-installer/

In my experience, it's coming along just fine.
 
Old 04-07-2004, 07:18 AM   #14
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 50
kernel 2.6 has been in sarge/testing for a few days...maybe a few months... it has been there quite on time. I wouldn't upgrade the kernel via apt-get but compile it. Once you've done it once, it takes five minutes to ensure you have what you need and according to your pc speed, it compiles.
A kernel is always configured for a hardware or particular needs, sometimes all the options you need are there for your system to work, sometimes no. It is a generic configuration to ensure MOST systems will work. If i have a rare network card, i might have to recompile...
 
Old 04-08-2004, 01:09 PM   #15
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
there was a really great tutorial on compiling kernels the debian way posted at linmagau.org -

http://www.osnews.com/story.php?news_id=3762

however, it seems linmagau is now offline


this may be useful, but its much more brief:
http://anarka.org/linux/debian_kernel.html
 
  


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
Does Apt-get dist-upgrade automatically update the kernel? adamb10 Ubuntu 2 07-10-2005 11:57 AM
Kernel Panic 2.6.7, 4TH Release via apt-get upgrade Outabux Debian 1 08-12-2004 01:05 AM
What's the difference between apt-get upgrade and apt-get dist-upgrade? davidas Linux - Newbie 4 04-04-2004 09:19 PM


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