LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-20-2007, 06:35 PM   #1
sjw01748
LQ Newbie
 
Registered: Jan 2007
Location: Hopkinton, MA
Distribution: Fedora 5
Posts: 8

Rep: Reputation: 0
Unhappy "rpm -qa 'kernel' " displays old kernel after download


Good Evening All:

I am trying to resolve an error:
/lib/modules/2.6.15-1.1.2054_FC5/build: broken symbolic
link to /lib/modules/2.6.15-1.2054_FC5-i686'

I received a post by "Lenard" suggesting I login as root and execute the command:

yum install kernel-devel

Acting on his suggestion I logged in as root and executed this command:

yum install kernel-devel

The following messages were displayed:

Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
core [1/3]
core 100% |=========================| 1.1 kB 00:00
updates [2/3]
updates 100% |=========================| 1.2 kB 00:00
extras [3/3]
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for kernel-devel to pack into transaction set.
kernel-devel-2.6.18-1.225 100% |=========================| 663 kB 01:57
---> Package kernel-devel.i686 0:2.6.18-1.2257.fc5 set to be installed
--> Running transaction check
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing: kernel-devel i686 2.6.18-1.2257.fc5 updates 4.4 M
Transaction Summary
=============================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 4.4 M
Is this ok [y/N]: y
Downloading Packages:
(1/1): kernel-devel-2.6.1 100% |=========================| 4.4 MB 13:29
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
Public key for kernel-devel-2.6.18-1.2257.fc5.i686.rpm is not installed
Retrieving GPG key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
Importing GPG key 0x4F2A6FD2 "Fedora Project <fedora@redhat.com>"
Is this ok [y/N]: y
Key imported successfully
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction

Installing: kernel-devel ######################### [1/1]
Installed: kernel-devel.i686 0:2.6.18-1.2257.fc5
Complete!

I then rebooted the system and executed the command

rpm -qa 'kernel

The kernel version displayed was 2.6.15-1.2054_FC5 NOT
2.6.18-1.2257.fc5.

I repeated this sequence 2 times with the same results.

Help Please!! Why is the new version not installed ?

Thanks for your help.

\Steve



















I am trying to determine why I cannot update my kernel.
 
Old 01-20-2007, 06:57 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 62
Post the complete output of the command ' rpm -qa | kernel '.
The output of ' uname -r '.
And the contents of /boot/grub/grub.conf.
Also the files listed in /boot as well

Brian
 
Old 01-20-2007, 07:07 PM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
I'm not using Fedora core, but I think this is what the build link should look like:
/lib/modules/2.6.18.2-34-default> ls -l build source
lrwxrwxrwx 1 root root 45 2006-12-24 05:25 build -> /usr/src/linux-2.6.18.2-34-obj/x86_64/default
lrwxrwxrwx 1 root root 26 2006-12-24 05:25 source -> /usr/src/linux-2.6.18.2-34

Do you have the kernel source for your present kernel installed?
The build link may be trying to point to something that doesn't exist. Look at the long listing of it to see where it should be pointing to. The kernel-dev package contains the kernel source tree. Check if you installed the kernel-dev package that corresponds to your particular kernel.

The package that you installed does not supply a new kernel. It supplies the kernel headers that the module you are trying to install may need. Files such as:
Code:
/usr/src/kernels/2.6.18-1.2257.fc5-i586/drivers/media/video/usbvideo
/usr/src/kernels/2.6.18-1.2257.fc5-i586/drivers/media/video/usbvideo/Kconfig
/usr/src/kernels/2.6.18-1.2257.fc5-i586/drivers/media/video/usbvideo/Makefile
/usr/src/kernels/2.6.18-1.2257.fc5-i586/drivers/media/video/zc0301
/usr/src/kernels/2.6.18-1.2257.fc5-i586/drivers/media/video/zc0301/Kconfig
One last item; you may want to include the version number when you use yum and rpm. You can have different kernels installed, so it is a good idea to be more explicit. Try "rpm -q kernel-dev" to see which version is installed. "rpm -ql kernel-dev-<version>" to list the files installed.

Good Luck!

Last edited by jschiwal; 01-20-2007 at 08:06 PM.
 
Old 01-22-2007, 04:42 PM   #4
sjw01748
LQ Newbie
 
Registered: Jan 2007
Location: Hopkinton, MA
Distribution: Fedora 5
Posts: 8

Original Poster
Rep: Reputation: 0
Question sjw01748:Requested Post To Brian: displays old kernel after download

Hello:

I received Brian's request to post the results of specific commands:

The commands and results are:

execute rpm -qa 'kernel*'
kernel-devel-2.6.18-1.2257.fc5
kernel-2.6.15-1.2054_FC5

cat /boot/grub/grub.conf
# grub.conf generated by anaconda
#

# Note that you do not have to rerun grub after making changes to this file

# NOTICE: You have a /boot partition. This means that

# all kernel and initrd paths are relative to /boot/, eg.

# root (hd0,1)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,1)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.15-1.2054_FC5)

root (hd0,1)

kernel /vmlinuz-2.6.15-1.2054_FC5
ro root=/dev/VolGroup00/LogVol00 pci=assign-busses rhgb quiet

initrd /initrd-2.6.15-1.2054_FC5.img

title Windows
rootnoverify (hd0,0)

chainloader +1

List Of Files in /boot

FILES IN DIRECTORY /boot
execute ls -la /boot
total 4023
drwxr-xr-x 4 root root 1024 Jan 13 18:17 .
drwxr-xr-x 23 root root 4096 Jan 22 14:33 ..
-rw-r--r-- 1 root root 63896 Mar 14 2006 config-2.6.15-1.2054_FC5
drwxr-xr-x 2 root root 1024 Jan 13 18:18 grub
-rw-r--r-- 1 root root 1684763 Jan 13 18:18 initrd-2.6.15-1.2054_FC5.img
drwx------ 2 root root 12288 Aug 1 10:27 lost+found
-rw-r--r-- 1 root root 811765 Mar 14 2006 System.map-2.6.15-1.2054_FC5
-rw-r--r-- 1 root root 1510257 Mar 14 2006 vmlinuz-2.6.15-1.2054_FC5

I would prefer to use the 2.6.15-1.2054_FC5 build tools.
I had downloaded the Rhat installation disks and would prefer to use that kernel version.
What happens if I have a kernel version installed which is earlier than the development version?

Thanks for your help.

\Steve
 
Old 01-24-2007, 04:23 PM   #5
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 62
If you wish to continue to use kernel-2.6.15-1.2054_FC5 then you need to install the kernel-devel-2.6.15-1.2054_FC5 rpm. The kernel-devel-2.6.18-1.2257.fc5 is not the same and if you built modules with it they would not run on a system running kernel-2.6.15-1.2054_FC5. Modules are built per kernel version.

Confused as to the name of devel. devel is the kernel source which is what the kernel and modules are built from which then gives one the rpm without the devel in the name if an rpm is built from it. devel does not really mean development as in the term you are referring to.

You can build a 2.6.18-1.2257 kernel from the rpm you have installed. The extracted source should be at /usr/src/linux-2.6.18-1 maybe the .2054 follows it. There are many post here on building 2.6 kernels. Some are old for 2.4 and earlier. The builds differ slightly. http://www.linuxquestions.org/questi...36#post1401136

Brian
 
  


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
LXer: The book "Linux Kernel in a Nutshell" available for free download LXer Syndicated Linux News 7 01-25-2008 02:56 PM
Common problems explained: "kernel panic - not syncing", "unable to mount..." sundialsvcs Linux - Newbie 2 03-01-2006 01:17 PM
Where to download rpm packages of "gocr" and "kooka" satimis Linux - Software 6 02-24-2006 12:35 AM
Kernel RPM "diff" update patches. redarrow Fedora 2 10-22-2005 02:52 AM
rpm of installing kernel "hangs" markraem Linux - Software 0 07-06-2004 12:21 PM


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