On Tuesday 15 March 2005 10:37 am, Tom wrote:
Julie Sloan wrote:
Sorry for the very long (what follows), but I've been at this point three times now, and each time I go to easyurpmi.zarb.org and start over with urpmi.removemedia, (then get the new sources) and then:
rpm --rebuilddb && updatedb && update-menus -v -n && ldconfig && urpmi.update -a --no-md5sum && urpmi --auto-select --noclean
First of all you shouldn't be mixin all those commands together Julie. Certainly not 'rpm --rebuilddb && updatedb && update-menus -v -n && ldconfig' _before_ updating your media and gettin updates. Even then, those commands are really only useful _after_ large daily 'unstable' cooker updates, specially when libs, system files, or xorg updates are involved. And then you should follow with a logout from your DE (destop environment, eg KDE), restart the X server, and log back in. Rarely, if ever, useful to do all that with 'stable' version Mandrake supplied updates (eg, 10.1, 10.0, 9.2 .....).
hi Tom;
okay, I don't need to update the menus and all that after each large update? I thought I read here that I should.
Depends, as I said sometimes after large updates it's needed, along with log out/in .... But you were tryin to do all those system 'refreshers' _before_ updating. You got it sort'a kind'a backasswards sweetheart ;) At least what you posted
You do realize that --noclean is just an option to keep rpm d/l's after uprmi has installed them, right? Not normally somethin you need to do. A better option might be --keep. It will keep present software on the system, and skip the update one, if there's a conflict encountered, rather than stop an tell you that there's a problem an an some package(s) need to be removed. But even then, somethin not normally needed with 'stable' version updates. (see 'man urpmi' for better explainations ;)
I am doing --noclean so that I do not have to d/l the rpms again should I have to reinstall (off discs) - I am on dialup and it takes several days. Also I am keeping the rpms because I am fixin to install 10.0 on my laptop and sure don't want to have to d/l all that once again.
OK, that's a valid reason, particulary if you move them to a 'safe' backup location. If you're forced to do a re-install with the packages left in /var/cache/urpmi/rpms/ or anywhere on your '/' partition, You'll lose them. I believe you might also find that if an when that re-install should occur, the packages could well have already been obsoleted by newer ones anyhow.
As far as --no-md5sum, I don't think you wanna do that either. It disables protection from d/l'g corrupted packages from bad mirrors. I believe what you want is to add these lines to the beginning of /etc/urpmi/urpmi.cfg (brackets included)
{ downloader: wget verify-rpm: 0 }
Oh, good. I was wondering about using wget instead of curl. As to the --no-md5sum tag, I believe I learned that here also. This morning I began another thread asking why --no-md5sum, but no-one's answered yet. :)
Well that's the reason ...it's a bad idea. The md5sums are checked against the (synthesis)hdlists to avoid corrupted package d/l'g. Doesn't happen often, but it can, and there's really no good reason to disable it. It works like this, Mandrake has a central internal server (Paris) that only a few 'primary' mirrors are allowed to mirror, then other mirrors mirror those primary ones, and some mirrors, particularly the further from Europe you get, mirror the mirrored mirrors. .... an so on.
Best to leave the default md5sum checking enabled, an to ignore the usual advice to "use a mirror closest to you". Better to use north to central Euro mirrors 'closer to the original source'. Here's a link for cooker mirrors which shows their current status.
http://cookermirrors.skycon.net/
Now I'm not sayin to use cooker sources, but if the mirror is up to date for cooker, and no connection problems, it's almost certainly good to go for present an past Mandrake versions also mirrored there. Just back up the ftp URLS in a browser till you find your Mandrake version, or use EZ urpmi, after checking to see which sites are in good shape.
Some other tips. Make an alias in /etc/bashrc
alias smm='edit-urpm-sources.pl' (quote marks included) Then typin 'smm' as root in a terminal (you're there to do urpmi anyhow) will run Software Media Manager. Here you can easily switch mirrors by en/disabling them with just a mouse click. Also, you can use more than one mirror site for updating an d/l'g (I generally keep 2 or 3 of my best ones enabled). urpmi will update from them in the order you installed them as sources. That way if a needed package is missing from one of the mirrors, urpmi will go get it from an enabled mirror that does have it.
Don't go too overboard tho. Even usin synthesis.hdlist.cz (which you should as you're on dialup), having multiple mirrors enabled will slow down a urpmi.update -a correspondingly to the number of mirrors you have enabled.
Now, an this might sound heartless, but when you find good mirrors for you, _don't_ broadcast them on public mailing lists. They'll get overloaded, abused, an no good to anybody then.
--
Tom Brinkman Corpus Christi, Texas
____________________________________________________ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com ____________________________________________________
