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 08-27-2003, 08:25 AM   #1
johnMG
Member
 
Registered: Jul 2003
Location: CT, USA
Distribution: Debian Sarge (server), Etch (work/home)
Posts: 601

Rep: Reputation: 32
which package is my kernel from?


I'm running PPC Debian Sid. (Not in front of my box ATM.) Which debian package is my kernel from? I've tried dpkg -S /boot/kernel_name (I think that's the option I used) but nothing comes up...

Is it part of a meta-package and I'm searching incorrectly?

(Darn, I wish I'd kept that package listing from when I first apt-get -u dist-upgrade'd from Woody.)
 
Old 08-28-2003, 03:43 AM   #2
footfrisbee
Member
 
Registered: Apr 2003
Distribution: Debian Sarge
Posts: 259

Rep: Reputation: 30
It may be that you kernel is not from a package at all. Did you install from cd? That usually install the cd's kernel, and not a package. You could also try
# dpkg-query -l 'kernel*' | grep ii

to see if there are any packages with the word 'kernel' installed.
 
Old 08-28-2003, 02:12 PM   #3
johnMG
Member
 
Registered: Jul 2003
Location: CT, USA
Distribution: Debian Sarge (server), Etch (work/home)
Posts: 601

Original Poster
Rep: Reputation: 32
Thanks for the reply ff,

Yes -- I did indeed install Woody from CD (I bought the full set from Abexia). But, if it's not installed from a package, how does it get upgraded when I do an apt-get dist-upgrade?

I'll look up dpkg-query when I get back home in front of my debian box. I have tried dpkg -l | grep kernel, but nothing comes up.

Incidentally, I've been trying (unsuccessfully) to build/install a kernel, and when I use make-kpkg kernel_image I get a nice kernel .deb in /usr/src. When I install that, it doesn't seem to remove anything in the process...

Last edited by johnMG; 08-28-2003 at 02:14 PM.
 
Old 08-29-2003, 02:14 AM   #4
footfrisbee
Member
 
Registered: Apr 2003
Distribution: Debian Sarge
Posts: 259

Rep: Reputation: 30
The kernel will only be upgraded with apt-get if you have a kernel-image package installed. It's not necessarily a good thing to upgrade your kernel. You should always read up on the changelog to see why you should upgrade your kernel.

Compiling your own kernel is a healthy Linux-y thing to do. It lets you touch and feel the OS just that much more. You're doing it correctly, i.e. the Debian Way through make-kpkg.

When you install it, the old kernel should be moved to /vmlinuz.old and the new kernel will take it's place as /vmlinuz. It should not remove anything. This is important so that when you compile a dud, you can just boot on the old kernel. Make sure that something like the following in your lilo.conf
Code:
install=menu
prompt
timeout=100
This options say, "prompt me at boot time and give me a nice menu to choose which kernel to boot, but if I don't answer in 100 deciseconds (0.1 s) just boot the default kernel."

p.s. Be sure to run lilo after your edit lilo.conf!

Last edited by footfrisbee; 08-29-2003 at 02:21 AM.
 
Old 08-29-2003, 12:11 PM   #5
masinick
Member
 
Registered: Apr 2002
Location: Clinton Township, MI
Distribution: Debian, antiX, Kubuntu, Xubuntu, and many others
Posts: 611
Blog Entries: 15

Rep: Reputation: 89
Quote:
Originally posted by johnMG
Thanks for the reply ff,

Yes -- I did indeed install Woody from CD (I bought the full set from Abexia). But, if it's not installed from a package, how does it get upgraded when I do an apt-get dist-upgrade?

I'll look up dpkg-query when I get back home in front of my debian box. I have tried dpkg -l | grep kernel, but nothing comes up.

Incidentally, I've been trying (unsuccessfully) to build/install a kernel, and when I use make-kpkg kernel_image I get a nice kernel .deb in /usr/src. When I install that, it doesn't seem to remove anything in the process...
footfrisbee has been giving you some good advice, I think he's right in everything that he has said on this topic.

I've been running a Debian system for nearly two years and using mostly a Woody base, with some testing (was Woody, now Sarge) and plenty of SID.

I hadn't changed my kernel at all. Just for kicks and for practice, I went out looking for a kernel that I could build and upgrade. I simply used the symaptic interface to the package manager so that I could search and see, graphically, what packages were available to me. I simply took the kernel sources and built from them. I've also found and installed kernel binary images and experimented with them from time to time, but I always keep at least one, sometimes two or three, other kernels around when I'm experimenting. I still use apt-get for a lot of things, but often, I find synaptic makes it easier for me to spot packages that I'm looking for.
 
Old 08-30-2003, 01:09 AM   #6
johnMG
Member
 
Registered: Jul 2003
Location: CT, USA
Distribution: Debian Sarge (server), Etch (work/home)
Posts: 601

Original Poster
Rep: Reputation: 32
Thank you folks for the replies.

footfrisbee wrote:
The kernel will only be upgraded with apt-get if you have a kernel-image package installed. It's not necessarily a good thing to upgrade your kernel. You should always read up on the changelog to see why you should upgrade your kernel.

Yes. I see what you mean. That makes sense.

I've been trying to build my own kernel the past couple of days, but I think I was a little too daring with pulling stuff out of my .config (via 'make menuconfig' of course).

p.s. Be sure to run lilo after your edit lilo.conf!

Actually, I'm using Debian on PPC -- so the command here is ybin -v to bless my boot partition with the holy penguin pee.

When you install it, the old kernel should be moved to /vmlinuz.old and the new kernel will take it's place as /vmlinuz.

Right. Also, I've found that when you uninstall your freshly-built kernel (with dpkg) it doesn't put the vmlinux link back the way it was. No big deal though -- I remembered to go back and change the vmlinux.old symlink back to vmlinux.

masinick, ordinarily I wouldn't be even fiddling with my kernel, except that I can't get the little volume control buttons (f_keys: F3 and F4) to work (via pbbuttonsd) on my Powerbook G3 "Firewire". I figured the newest "benh" kernel (Ben H. is the fellow who maintains the PPC -- for-Apple-hardware -- linux port) might do the trick.

---j
 
  


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
new kernel compiled successfully, but the kernel-source package is the same old? luqman Red Hat 2 03-03-2005 08:41 AM
what is this kernel source package? vrdhananjay Linux - Newbie 3 09-22-2004 12:37 AM
alsa in kernel and package shanenin Linux - Software 4 09-09-2004 01:35 AM
custom kernel with Debian kernel-package comprookie2000 Debian 9 06-29-2004 05:30 PM
Kernel package questions Worstje Slackware 4 06-13-2004 06:13 AM

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

All times are GMT -5. The time now is 04:24 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