Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Doing a complete normal weekly update… A survivor’s tale…
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
hurricane
Tux's lil' helper
Tux's lil' helper


Joined: 15 Jul 2004
Posts: 107

PostPosted: Thu Apr 22, 2010 3:11 am    Post subject: Doing a complete normal weekly update… A survivor’s tale… Reply with quote

Code:
### eix-sync:
layman -S
emerge --sync
egencache --repo=local --update
cd /usr/local/portage/layman/kde/Documentation && sh ./metadata-sync
emerge --regen || echo "“emerge --regen” has returned the error status $?."
eix-update
eix-remote update
### update
emerge -auDNtv --keep-going world # press y<enter>
# Circumvent or fix a bazillion non-working packages, and run “emerge -auDNtv world” again... for a couple of times, until you got everything working or masked.
haskell-updater
etc-update # walk trough a ton of fils
eselect news read new
# Apply changes from news.
### cleanup
revdep-rebuild
emerge -a --depclean
rm -rf /var/tmp/portage/* # cleanup stuff from those failed packages
### kernel
cd /usr/src && ln -sfn linux-* linux && cd linux
cp /boot/.config .
make oldconfig
make
make modules_install
make install # runs self-written installkernel script. answer questions, if they occur.
reboot
# Go hunt the forums and IRC for at least half an hour, to get everything that previously worked to work again, and file at least one bug on bugzilla for whatever you couldn’t fix this time. Get called an idiot or banned for trolling at least once while in your usual rage phase, because you weren’t already born with the knowledge, that from last month on, massive architectural changes are sometimes notified in overlay SVN commit messages, scrolling by and away at 50 lines a second.


Easy peasy. Who needs long-term stable platforms?

</sarcasm> (...and they wonder why I’m angry...)

P.S.: Yes, this was what I actually spent my whole last weekend with. :( Please Ubuntu, adopt Paludis!
Back to top
View user's profile Send private message
yzg
Guru
Guru


Joined: 18 Jun 2005
Posts: 463

PostPosted: Thu Apr 22, 2010 3:22 am    Post subject: Reply with quote

I do not know what is the point of your post.

Most of the times all you need is sync and update. You can not blame gentoo for allowing you to choose between many options. Freedom is not free.
Back to top
View user's profile Send private message
platojones
Veteran
Veteran


Joined: 23 Oct 2002
Posts: 1595
Location: Just over the horizon

PostPosted: Thu Apr 22, 2010 3:26 am    Post subject: Reply with quote

Quote:
# Go hunt the forums and IRC for at least half an hour, to get everything that previously worked to work again, and file at least one bug on bugzilla for whatever you couldn’t fix this time. Get called an idiot or banned for trolling at least once while in your usual rage phase, because you weren’t already born with the knowledge, that from last month on, massive architectural changes are sometimes notified in overlay SVN commit messages, scrolling by and away at 50 lines a second.


Comedy gold, my friend. The only people I've seen called idiots around here are idiots. I'm sure there is a law against that where you come from, but it's still fun. Anybody but a spammer been banned? Not that I've seen.

BTW, it would be even more interesting if you provided a link to where you were called an idiot. Since you are posting here, it's clear you weren't banned.

Yes, by all means, go to Ubuntu and wait for a version of Paludis to show up. You get to keep the troll that comes with it, BTW. Have fun!
Back to top
View user's profile Send private message
AllenJB
Veteran
Veteran


Joined: 02 Sep 2005
Posts: 1285
Location: Ashford, Kent

PostPosted: Thu Apr 22, 2010 6:43 am    Post subject: Reply with quote

I like the way you leave reading news until after you've done your world update (with --keep-going) and updated your config files.

Also, your kernel compile commands can be reduced to:
make oldconfig
make all modules_install install
_________________
http://gentoo-wiki.com :: http://lug.org.uk :: http://www.linux.org/groups/ :: User Blogs
Back to top
View user's profile Send private message
luismw
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jan 2010
Posts: 90

PostPosted: Thu Apr 22, 2010 8:46 am    Post subject: Reply with quote

Hi, I'm kind of new here, so please correct me if I'm wrong, but isn't the OP's script excessively baroque?

I've been using Gentoo since January, my update procedure is done by hand and consists of eix-sync and emerge -DuvaN world, and that's it (oh, and layman -S). After the emerge, it's important to actually read the messages of each package, and you'll find all kinds of useful instructions. Just last week we had a xorg-server update and you had to rebuild all drivers, later on some library was updated and you needed a revdep-rebuild, and so on, nothing too complicated.

I was using Ubuntu before Gentoo and about a week from now if I wanted and up-to-date system I would have to make a complete reinstall of stock Ubuntu, remove all crap and correct (if possible) all changes from the last six months all at once. With Gentoo you have to maintain your system more frequently, but it requires a lot less work, so I think it pays off. (Completely off-topic, it seems that a week from release Ubuntu 10.04 has introduced a major memory leak in xorg-server and they aren't quite sure how to solve it)

One last question: Am I misunderstanding your script or do you always rebuild the kernel each time you update the system, regardless of actual updates in the kernel?
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7056

PostPosted: Thu Apr 22, 2010 10:43 am    Post subject: Reply with quote

platojones wrote:
BTW, it would be even more interesting if you provided a link to where you were called an idiot.


He is an idiot....

Only some fool could cry on a forum because portage can admin gentoo but not his computer...

on all distros YOU are the admin, and it's your task to admin your computer.
if your distro is too hard to admin, switch distro or pay someone to do the task. if you want less admin tasks buy windows, less liberty isn't a problem if you only care about more simplicity.

But seriously, thinking a script can admin your computer for you, yeah, only an idiot might think that.
Back to top
View user's profile Send private message
Frustie
Tux's lil' helper
Tux's lil' helper


Joined: 31 Aug 2007
Posts: 101
Location: My own little planet.

PostPosted: Thu Apr 22, 2010 12:27 pm    Post subject: Reply with quote

@luismw

its not a script, also i would advice you not to try it even once ^^.

The OP logged what ever he was doing last weekend, and it kind of looks like a script, but it really isnt :)

@OP, i updated last weekend and tried the 200+ day uptime reboot feature, all my drives were gone, so youre not the only one who had to suffer :)
Back to top
View user's profile Send private message
skellr
l33t
l33t


Joined: 18 Jun 2005
Posts: 859
Location: The Village, Portmeirion

PostPosted: Thu Apr 22, 2010 12:46 pm    Post subject: Re: Doing a complete normal weekly update… A survivor’s tale Reply with quote

hurricane wrote:
Easy peasy. Who needs long-term stable platforms?

</sarcasm> (...and they wonder why I’m angry...)


:) It can have it's moments, especially when your not in the mood for it. Weekly's shouldn't be too bad, but, i guess it depends on what you have.

hurricane wrote:
Please Ubuntu, adopt Paludis!

You're not using paludis on Gentoo? It's nice when your working with a few repos.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10210
Location: Somewhere over Atlanta, Georgia

PostPosted: Thu Apr 22, 2010 1:02 pm    Post subject: Re: Doing a complete normal weekly update… A survivor’s tale Reply with quote

hurricane wrote:
Easy peasy. Who needs long-term stable platforms?

</sarcasm> (...and they wonder why I’m angry...)
If you feel that way about a product, I think you should (a) demand your money back, and (b) stop using the product.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
Punisher
n00b
n00b


Joined: 26 Feb 2007
Posts: 21

PostPosted: Thu Apr 22, 2010 2:19 pm    Post subject: Reply with quote

I only need two or three commands for update my gentoo...
Back to top
View user's profile Send private message
mikegpitt
Advocate
Advocate


Joined: 22 May 2004
Posts: 3221

PostPosted: Thu Apr 22, 2010 2:26 pm    Post subject: Reply with quote

Perhaps your overlay is causing the issue? You can't blame gentoo devs for using unsupported packages or those not marked stable, and then have things go awry.
Back to top
View user's profile Send private message
Mousee
Apprentice
Apprentice


Joined: 29 Mar 2004
Posts: 291
Location: Illinois, USA

PostPosted: Thu Apr 22, 2010 3:51 pm    Post subject: Reply with quote

Mask packages to restrict updates to something more predictable? ie. ~sys-devel/gcc-4.4.3
Automate your update process by throwing tasks that don't commonly require user interference into a cron job?

  • layman -S && emerge --sync
  • egencache --repo=local --update
  • cd /usr/local/portage/layman/kde/Documentation && sh ./metadata-sync
  • emerge --regen || echo "“emerge --regen” has returned the error status $?."
  • eix-update && eix-remote update

eix-update could and probably should be run once a month at most. Unless you use eix on a daily basis updating it as frequently as every week is a waste of time and resources.
I also highly doubt that the kde documentation (in your overlay) is going to change as often as every week. Perhaps the overlay does indeed update it that frequently - but again, I doubt it.
Why are you running emerge --regen anyways? It seems quite redundant when used with emerge --sync. Unless you have some custom setup for syncing (ie. not using a Gentoo rsync server)?
Quote:

--regen
Causes portage to check and update the dependency cache of all
ebuilds in the portage tree. This is not recommended for rsync
users as rsync updates the cache using server-side caches.
Rsync users should simply 'emerge --sync' to regenerate.
In order to specify parallel --regen behavior, use the
---jobs and --load-average options. If you would like to
generate and distribute cache for use by others, use
egencache(1).

I'll assume you're running egencache --repo=local --update because you're maintaining a local overlay that's being distributed to other machines in your network. Otherwise there's not point in running that either.

And again - mask your packages. There's absolutely no reason you should be updating your kernel sources that frequently unless you're a developer or tester. I use the same kernel on all of my systems for at least a year before updating them - unless some major security issue or extremely useful feature is released before then.

My weekly maintenance, most done via cron jobs, takes me all of 5 - maybe 10 minutes of "hands on" interaction. Most of that is spent checking out updates on specific packages or verifying distcc is turned on (on every system in my local network). I don't see how, after having been a part of the Gentoo community for roughly 6 years, you're having so many issues with a simple update procedure. I could see getting frustrated with something like updating Xorg, KDE/Gnome, or moving from baselayout-1.x to 2.x, but to have a similar level of frustration on a weekly basis.... I'm amazed you've not realized that this IS NOT the "norm" and that you're clearly doing something wrong. Gentoo may have its issues but what you're describing is your own fault - not Gentoo's.
Back to top
View user's profile Send private message
NathanZachary
Moderator
Moderator


Joined: 30 Jan 2007
Posts: 2459
Location: /home/zach

PostPosted: Fri Apr 23, 2010 6:39 pm    Post subject: Reply with quote

Moved from Gentoo Chat to Unsupported Software, as the problem is with the overlays, not the official portage tree.
_________________
“Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio---
Back to top
View user's profile Send private message
beandog
Developer
Developer


Joined: 04 May 2003
Posts: 2065
Location: /usa/utah

PostPosted: Fri Apr 23, 2010 7:35 pm    Post subject: Reply with quote

Wow, bust out the talons ... geez, guys, give him a break ... it was humorous, I thought (and pretty accurate). The same thing happens to me. I just don't mind it ... most of the time.

Edit: Also, I recommend:

Code:
eselect kernel list
eselect kernel set <int>

and dispatch-conf + rcs is an absolute life-saver in those worst-case scenarios.
_________________
If it ain't broke, tweak it. dvds | blurays | blog | wiki
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum