Gentoo Archives: gentoo-server

From: Marius Mauch <genone@g.o>
To: gentoo-server@l.g.o
Subject: Re: [gentoo-server] A few questions about portage
Date: Wed, 28 Sep 2005 04:24:04
Message-Id: 433A0E4A.3060805@gentoo.org
In Reply to: Re: [gentoo-server] A few questions about portage by Christian Ehlers
1 Christian Ehlers wrote:
2 > I am doing the following:
3 >
4 > 1. qpkg -I -nc |xargs emerge -u
5 >
6 > 2. revdep-rebuild
7 >
8 > I am wondering if this is sufficient? Basically as far as I understand
9 > it, 1. will check for updates on all packages installed, and 2. will
10 > check if anything needs recompiling because a shared library has been
11 > updated.
12 >
13 > Anything else I need to do to make sure my system is up2date? Maybe I
14 > missed something in the replies, but as far as I understood it
15 > (admitting that English isn't my 1st or 2nd language) there was no real
16 > solution posted yet?
17 >
18 > Should I still do an emerge -u --deep world (+ --newuse if I change the
19 > use variable?)
20
21 First: don't use qpkg, it's dead and has several conceptual bugs
22 (causing for example wrong results for the command you use). New
23 gentoolkit versions already don't install it anymore (except for a copy
24 in the docs dir).
25 As for general update procedure, I'd recommend:
26 - glsa-check -l $(glsa-check -t new)
27 - Update those packages first (glsa-check -f new, might cause some
28 redundant updates though later due to a different update strategy)
29 - emerge -uavDN world
30 - emerge -p --depclean
31 - Check that list and either remove the packages or add them to the
32 world file
33 - revdep-rebuild || revdep-rebuild -X
34
35 This requires and ensures that your worldfile is always uptodate and
36 correct, thought you might have already corrupted it with your qpkg
37 trick (as in some versions -u added a package to world).
38
39 Marius
40 --
41 gentoo-server@g.o mailing list