Jarry schreef: > Holly Bostick wrote: > >> Qian Qiao schreef: >> >>> On 11/6/05, Jarry <[EMAIL PROTECTED]> wrote: >>> >>> >>>> All I do is running this set of commands every night from >>>> crontab: emerge --sync emerge --update --deep --newuse world >>>> emerge --depclean revdep-rebuild >>> >>> Omg, you have emerge --deep --newuse --update world as a *cron* >>> job? >> >> .... and just when you thought it couldn't get any worse, comes a >> depclean .... every night. >> >> Ciaran said it best: >> >>> I really hope you don't want your system to carry on working... > > > http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=1#doc_chap3 > ======================== <copy&paste>===================== Updating > your System To keep your system in perfect shape (and not to mention > install the latest security updates) you need to update your system > regularly. Since Portage only checks the ebuilds in your Portage tree > you first have to update your Portage tree. > > Code Listing 2: Updating the Portage tree # emerge --sync > > When your Portage tree is updated, you can update your system with > emerge --update world ... Code Listing 16: Removing orphaned > dependencies # emerge --update --deep --newuse world # emerge > --depclean # revdep-rebuild > ============================================================ > > Could some of you, gentoo-wizards, be kind enough and explain, what > is wrong in doing the things the way gentoo handbook recommends it?
The Gentoo Handbook does *not* recommend you do these procedures *unattended*, the way you are doing them. And a depclean-- which should 1) always be run with --pretend first, and 2) should be checked for sanity before running without --pretend, certainly should not be run both unattended and unchecked, every night. I suppose you've never seen this message: emerge -p depclean *** WARNING *** : DEPCLEAN CAN SERIOUSLY IMPAIR YOUR SYSTEM. USE CAUTION. *** WARNING *** : (Cancel: CONTROL-C) -- ALWAYS VERIFY ALL PACKAGES IN THE *** WARNING *** : CANDIDATE LIST FOR SANITY BEFORE ALLOWING DEPCLEAN TO *** WARNING *** : UNMERGE ANY PACKAGES. *** WARNING *** : *** WARNING *** : USE FLAGS MAY HAVE AN EXTREME EFFECT ON THE OUTPUT. *** WARNING *** : SOME LIBRARIES MAY BE USED BY PACKAGES BUT ARE NOT *** WARNING *** : CONSIDERED TO BE A DEPEND DUE TO USE FLAG SETTINGS. *** WARNING *** : emerge --update --deep --newuse world TO VERIFY *** WARNING *** : SANITY IN THIS REGARD. *** WARNING *** : *** WARNING *** : Packages in the list that are desired may be added *** WARNING *** : directly to the world file to cause them to be ignored *** WARNING *** : by depclean and maintained in the future. BREAKAGES DUE *** WARNING *** : TO UNMERGING AN ==IN-USE LIBRARY== MAY BE REPAIRED BY *** WARNING *** : MERGING *** THE PACKAGE THAT COMPLAINS *** ABOUT THE *** WARNING *** : MISSING LIBRARY. emerge -uDN world... well, it's not so much that anything is "wrong" with doing that every night, but ... unattended? So you have no idea what USE flags you're using, what versions of anything you're using, and when something else breaks (because you updated a dependency but the program that depends on it isn't able to use the update as yet, which happens a lot)-- you have no idea what broke the program, or why. If you have an nVidia card, but the new drivers don't support your particular card, and you just upgrade blindly, how are you going to know why X doesn't work all of a sudden? If you suddenly wake up to find that you have no disk space, because you have installed Evolution and Evolution Data Server (which you don't use, but there is a new USE flag for many GNOME programs-- eds-- that will install those applications unless you turn the flag off)-- who do you have to blame but yourself? And how are you going to determine what is suddenly eating your disk space and prevent it from happening again? With great power comes great responsibility, and Gentoo gives you a lot of power to configure and manage your system. However, you are responsible for paying attention to what is happening and keeping everything under control. Which you are not doing, and frankly, you're pretty lucky that something hasn't blown up up to now. Holly -- gentoo-user@gentoo.org mailing list