February 05, 2004

Emerge Updates

For my benefit and Stacey's, here are the steps I use to successfully update my gentoo box.

emerge sync
emerge -UDp --world
emerge -UD --world (make sure everything looks fine from the last step)
revdep-rebuild (this will rebuild everything that is now broken due to a dependency issue. This is in the gentoolkit ebuild)
ldconfig

Everythign should work fine for you now. But I don't guarantee anything :)

Posted by doug at February 5, 2004 01:03 PM
Comments

hmm...i do it slighly differently;
emerge sync
emerge -uDp world (pretend)
emerge -uD world (do it)
etc-update (compare updated config files)

gentoo's etc-update is damn slick. i want one for my debian box.

i'm not sure the different between -U and -u, but i've seen people recommend -u over -U.

also, another hot tip, you can put your own little mask/unmask overrides in /etc/portage/package.mask and package.unmask.

these files will be preserved across syncs, so you can do anything you like and annotate it accordingly.

Posted by: john at February 6, 2004 10:22 AM

Doug's revdep thing is particularly handy when doing the glibc update. In theory, you're supposed to emerge -e world (recompile everything), but that takes FOREVER, so I hear. First time I updated glibc I didn't bother with anything afterwards, and after about 12 hours things like apache and proftpd started freaking out. So the second time, I recompiled them after the glibc thing. This time I think I'll try Doug's revdep thingy, or just suck it up and recompile everything. If I ever find the time to start the upgrade.

Posted by: stacey at February 6, 2004 01:59 PM

The difference between -u and -U has to do with putting older versions of a package in place if something new depends on it. I just remember seeing -U in a howto or on the gentoo forums so what's what I did. As for the revdep, it worked really well for me when I did my glibc update a couple weeks back.

Let me know how it goes Stacey..

Posted by: doug at February 6, 2004 02:37 PM

As for the etc-update, emerge will usually tell you if you need to run that or not. It depends on what your upgrading/installing. I have not found any updates yet that needed etc-update as far as I remember, but on new installs, etc-update has been required most of the time.

Posted by: doug at February 6, 2004 02:38 PM

yeah, it tells you they need to be checked, but etc-update interactively steps you through the changes, showing you diffs, and letting you merge the files on a line-by-line basis. it's not REQUIRED, it's just slick.

Posted by: john at February 6, 2004 04:20 PM

Gee, pretty much everything I install wants config files to be changed. I don't know what you have installed, Douggie, but you're lucky. I hate hate hate the phpmyadmin config file changes. It just makes me cringe.

Posted by: stacey at February 6, 2004 05:12 PM

simple.. use a real DB like PostgreSQL :)

Posted by: doug at February 6, 2004 05:29 PM

I'd still need a front end no matter what database I used, so I'd still be in the same boat.

Posted by: stacey at February 7, 2004 12:16 AM
Post a comment









Remember personal info?