Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Trick: any non-world packages installed?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
adsmith
Veteran
Veteran


Joined: 26 Sep 2004
Posts: 1386
Location: NC, USA

PostPosted: Tue Oct 12, 2004 3:50 pm    Post subject: Trick: any non-world packages installed? Reply with quote

I want to see how well the /var/cache/edb/world file represents what I have installed. That is, did I do any --oneshot's or is something otherwise hosed? It might give you an idea of what has been installed solefy for dependency reasons, and shows why the -D (--deep) flag in important when running emerge -u.

This actually isn't very useful, but it allowed me to procrastinate my work a bit more ;)

Code:

cd /tmp

cp /var/cache/edb/world .
qpkg -I --nocolor > world-inst
# We will be diffing these two files.


Code:

# First, make sure there's nothing in world that's not installed!

cat world | ( \
       while read line; do
        grep -x $line world-inst;
        done ) >  world-common
diff -q world world-common


if non-empty response, then check it out with sdiff.

Code:

# Now, see what's intalled that's not in world.
cat world-inst | ( \
       while read line; do
       grep -x $line world;
       done ) >  world-common2
sdiff world-common2 world-inst



To get a nicer list you can parse with other tools, do

Code:

diff world-common2 world-inst  | grep ">" | sed 's/> //' > world-cruft


For instance, you could now run qpkg -I -q on entries in this file
Back to top
View user's profile Send private message
mirko_3
l33t
l33t


Joined: 02 Nov 2003
Posts: 605
Location: Birreria

PostPosted: Tue Oct 12, 2004 9:02 pm    Post subject: Reply with quote

how is this different from running "regenworld"?
_________________
Non fa male! Non fa male!
Back to top
View user's profile Send private message
adsmith
Veteran
Veteran


Joined: 26 Sep 2004
Posts: 1386
Location: NC, USA

PostPosted: Tue Oct 12, 2004 9:12 pm    Post subject: Reply with quote

well, I guess it's not that different, except that this doesn't do anything, it just lists the differences, which one might find interesting.

hey, I said it wasn't very useful :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks 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