LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
Search this Thread
Old 03-08-2005, 08:23 PM   #1
toes
Member
 
Registered: Mar 2005
Location: Arkansas
Distribution: Mandy 2006, FC5
Posts: 154

Rep: Reputation: 30
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?
 
Old 03-09-2005, 04:59 AM   #2
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
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.
 
Old 03-09-2005, 09:32 AM   #3
toes
Member
 
Registered: Mar 2005
Location: Arkansas
Distribution: Mandy 2006, FC5
Posts: 154

Original Poster
Rep: Reputation: 30
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.
 
Old 03-09-2005, 10:20 AM   #4
crispus
LQ Newbie
 
Registered: Nov 2004
Posts: 26

Rep: Reputation: 15
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
 
Old 03-09-2005, 11:27 AM   #5
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
Wow excellent.

I didn't know that... another one for the "learn something new every day" pile.
 
Old 03-09-2005, 07:51 PM   #6
toes
Member
 
Registered: Mar 2005
Location: Arkansas
Distribution: Mandy 2006, FC5
Posts: 154

Original Poster
Rep: Reputation: 30
That did it, Crispus. Thanks!
 
Old 03-09-2005, 08:03 PM   #7
crispus
LQ Newbie
 
Registered: Nov 2004
Posts: 26

Rep: Reputation: 15
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
 
  


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
urpmi updated kernel source but not the kernel itself(??) tredegar Mandriva 5 02-15-2005 02:27 AM
urpmi installs wrong kernel-source edgjerp Mandriva 4 02-14-2005 03:40 PM
where to download the mandrake kernel 2.6 source without urpmi msalimane Mandriva 1 12-25-2004 08:56 AM
urpmi list.Updates zaphod_es Linux - Software 18 10-20-2003 02:48 PM
urpmi list.updates missing zaphod_es Mandriva 7 09-20-2003 04:13 PM


All times are GMT -5. The time now is 03:03 PM.

Main Menu
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