[EMAIL PROTECTED] wrote:
>
> hi,
> I have a upgraded to a kernel version 2.2.17-14 using rpm's.
> My problem is I want to reinstall the kernel again because I
> forgot to add the kernel-headers and kernel source when I upgraded.
You don't need to do anything with the kernel to install the headers or
the souce just install them
> Could I just reinstall it over the existing one. I am going to install
> the same version again but this time I will include the headers and source.
> I tried to reinstall it over the existing one and everything went fine & booted just
>fine but my problem is when I do "rpm -q kernel",
> this is what shows up:
>
> #rpm -q kernel
> kernel-2.2.12-20
> kernel-2.2.17-14
> kernel-2.2.17-14
>
Now this looks interesting. I see two approaches, I am sure there are
more. If the old kernel is still bootable and it should be. I would
boot to the old kernel and rpm -e kernel-2.2.17-14 and see what
happens. With luck it will get both of them with less luck you will
have to run it again to get the second one. With no luck rpm will freak
out and screwup everything.
Make a backup, Quick :)
the second is to RTFM. Seems like you can pass a flag to rpm to tell to
delete stuff from its database but not make any filesytem changes. If
that is so, the you could delete the rpms from the database and then
reinstall the kernel again.
With luck this option when run once will delete only one of the
occurances and you will be good to go without reinstalling. I have no,
none, zero knowledge of how rpm tracks files so this may be a job for
the rpm list. There are some sharp folks over there but then there are
some sharp folks on this list too, maybe one will chime in now that I
have primed the pump (not to be confused with dhcpcd :)
If the last part in parentheses is confusing don't worry about it. Lame
attempt to be cute and not relevent to the discussion.
Bret
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list