LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   Don't want kernel-source in urpmi updates (https://www.linuxquestions.org/questions/mandriva-30/dont-want-kernel-source-in-urpmi-updates-299374/)

toes 03-08-2005 08:23 PM

Don't want kernel-source in urpmi updates
 
I recently discovered that I installed the wrong kernel-source version shortly after I installed Mandrake. My kernel version is 2.6.8.1-12mdk, but I mistakenly installed the source for 2.6.8.1-24mdk. I corrected this by installing the source to match my kernel (using rpm --oldpackage), and then updating sym links in /lib/modules.

My problem now is that the newer source version (...-24mdk) is showing up in my urpmi updates list. I can't find any option for removing a certain package from the urmpi database, so how can I avoid downloading and installing this source over the top of the correct source version?

opjose 03-09-2005 04:59 AM

Basically, you don't.

If you want to avoid automatically re-installing it, use RPMDRAKE ("Install Software" in the menu) and unselect it from the "available updates" group before hitting install.

BTW:

That's not quite the way to fix the source problem.

You should have

rpm -e kernel-source

to eliminate the wrong currently installed version.

Then either download, or use the rpm from the CD/DVD and

rpm -Uvh kernel-source-xx-xx-xx.rpm

Which will re-install the version which is in your current directory.

Finally, the updated kernel-source is available because there is also an updated kernel available.

You should switch to it, if possible.

Usually there are only very few reasons not to.

toes 03-09-2005 09:32 AM

Thanks for the response. I have considered moving to a new kernel, but still holding off out of fear of hosing my system. I think I'm about comfortable enough in my direction-following abilities to go ahead with it soon, though. :)

crispus 03-09-2005 10:20 AM

Actually, in the file skip.list located in /etc/urpmi you can add an entry for the packages that you don't want urpmi to install.

My skip.list file has the following entries:

grub
lilo
kernel
kernel-source

If you use urpmi --update --auto-select, then any package that begins with what is in your skip.list will be skipped. Or if you specifically try to install grub.whatevever.rpm it would refuse (as long as you use urpmi and not just rpm as the command).

From the MCC, the packages will still show up in the list of available packages to be updated but if you clicked on them and tried to install them, it would refuse.

When you so choose to install anything in your skip.list file, edit the file, remove the entry, save it and continue as your were.

Regards,
Crispus

opjose 03-09-2005 11:27 AM

Wow excellent.

I didn't know that... another one for the "learn something new every day" pile.

toes 03-09-2005 07:51 PM

That did it, Crispus. Thanks!

crispus 03-09-2005 08:03 PM

Glad to help.

I also just found out that the kernel updates do not appear under updates in the MCC but they appear under Install while an updated kernel-source will appear under updates. At least if the kernel-source appears you know that a new kernel has been released.

I can only suspect this is so that the user has the option to install multiple kernels via the GUI whereas if it was under updates it would overwrite it(?).

And don't know if it needs to be mentioned here but as a reminder its always a good idea to install a new kernel in parallel with your current one and give it a go first before removing the old one.

Glad to help.

-Crispus


All times are GMT -5. The time now is 04:23 AM.