Dugald Cameron wrote:
Thanks Ron, Tom and Grumpy for your informative replies, I am nearly ready to go but there is still one issue that I can't get my mind around.

I have set up the community and plf sources, however there are some packages which appear in both, eg. mplayer and xine and their depends. How do I make it so that these packages are updated from plf and not community? (and certainly not both)


As long as the plf and mandriva packages are equal versions, urpmi should give preference to the plf updates. One way I try to further insure this is to put my plf sources above all mandriva sources. Run SMM (software media manager) an you can hi-lite sources an then use the up/down arrow buttons to move them. I like to use SMM in a root term, the same one I use for updating, by simply typing 'smm' (alias smm='edit-urpm-sources.pl')

Once you have the plf packages installed, you can guarantee urpmi won't update to some mdk packages, as they often appear on the mirrors before plf ones do, by putting (pasting, I use gedit as root) them into your /etc/urpmi/skip.list I have;

/mplayer.*mdk/
/mencoder.*mdk/
/libaviplayavcodec0.*mdk/
/libMagick8.*mdk/
/ImageMagick.*mdk/
/vlc.*mdk/
/libfreetype6.*mdk/

The slashes combined with .*mdk tell urpmi to skip any mandriva versions, but will get plf updates when they are available. You need to do this as plf packages with mandriva counterparts are built from the mdk packages, but with "legal problem" compile options enabled. So obviously they won't appear till after the mdk package is released.

Of course this situation doesn't even exist for packages that are plf only, like transcode, unrar, libdvdcss2, an so on. To see which plf packages you have installed, I simply type 'frpm plf' in a term to get a listing. (alias frpm='rpm -qa | grep -i'). I put my aliases in /etc/bashrc so they're available to both root an user (me). If you try to run an alias that needs root priviledge, you'll get a mesg telling you so, EG, "only root can do that". BTW, I use aliases for updating also;

alias cook='urpmi.update -caf && urpmi --auto-select -v --keep'
alias cookn5='urpmi.update -caf --no-md5sum && urpmi --auto-select -v --keep'

Those are mine for cooker, so you'll probly want to choose a more apropos nickname for yours if you use them.

Going back to 'smm'; the plf mirrors are just as often, maybe more unreliable than mandriva mirrors. If they're unavailable when you update it could cause urpmi to hang on their mirror(s). If you suspect this is the problem, use smm to temporarily disable the problem source. Just uncheck it (them) an then, try to use urpmi again. An then remember to re-enable them next time, so do it as soon as you're done updating ;)
--
Tom Brinkman Corpus Christi, Texas
____________________________________________________
Want to buy your Pack or Services from Mandriva? Go to http://store.mandriva.com
Join the Club : http://www.mandrivaclub.com
____________________________________________________

Reply via email to