public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Richard Fish" <bigfish@asmallpond.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Questions on the number of packages listed by 'emerge --depclean'
Date: Thu, 20 Jul 2006 12:55:02 -0700	[thread overview]
Message-ID: <7573e9640607201255y51beab1ai94c3cefb402aa529@mail.gmail.com> (raw)
In-Reply-To: <1153421754.13426.17.camel@scarlatti.leonora.org>

On 7/20/06, Vladimir G. Ivanovic <vgivanovic@comcast.net> wrote:
> When I run 'emerge --depclean' I get this at the end as output:
>
>         Packages installed:   2305
>         Packages in world:    1762

WOW! That is a *huge* number of packages in world!

>      1. It seems I'm missing 17 (2322 - 2305 = 17) packages. How can
>         find out the names of these packages?

They are in the depclean output.  If it shows up in depclean, it is
not in world or system, nor a dependancy of something in world or
system.

>      2. It seems that I have 479 (2305 - 1762 - 64 = 479) packages that
>         are in neither world nor system.
>              A. What are the names of these packages?

emerge -Devp system | awk -F'] ' '{ print $2 }' | awk '{ print $1 }' >
~/system_pkgs.txt
equery -i list | grep "/" | while read pkg; do
    pkg="${pkg%-[0-9]*}"
    grep "$pkg" /var/lib/portager/world >/dev/null && continue
    grep "$pkg" ~/system_pkgs.txt >/dev/null && continue
    echo $pkg
done

>              B. How did they get onto my system?

They are dependancies of something in world or system.  "equery depends <pkg>".

>      3. It seems that I have 22 (2305 - 2283 = 22) packages that are
>         slotted. How can I check this?

"emerge --prune --pretend world"

Do *NOT* run this command without the --pretend option.

-Richard
-- 
gentoo-user@gentoo.org mailing list



  parent reply	other threads:[~2006-07-20 20:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-20 18:55 [gentoo-user] Questions on the number of packages listed by 'emerge --depclean' Vladimir G. Ivanovic
2006-07-20 19:47 ` PaulNM
2006-07-20 20:08   ` Vladimir G. Ivanovic
2006-07-20 21:10     ` Neil Bothwick
2006-07-20 19:55 ` Richard Fish [this message]
2006-07-20 22:00   ` Dale

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7573e9640607201255y51beab1ai94c3cefb402aa529@mail.gmail.com \
    --to=bigfish@asmallpond.org \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox