public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Questions on the number of packages listed by 'emerge --depclean'
@ 2006-07-20 18:55 Vladimir G. Ivanovic
  2006-07-20 19:47 ` PaulNM
  2006-07-20 19:55 ` Richard Fish
  0 siblings, 2 replies; 6+ messages in thread
From: Vladimir G. Ivanovic @ 2006-07-20 18:55 UTC (permalink / raw
  To: Gentoo User List

When I run 'emerge --depclean' I get this at the end as output:

        Packages installed:   2305
        Packages in world:    1762
        Packages in system:   64
        Unique package names: 2283
        Required packages:    2322
        
     1. It seems I'm missing 17 (2322 - 2305 = 17) packages. How can
        find out the names of these packages?
     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?
             B. How did they get onto my system?
     3. It seems that I have 22 (2305 - 2283 = 22) packages that are
        slotted. How can I check this?

Thanks.

--- Vladimir

-- 
Vladimir G. Ivanovic <vgivanovic@comcast.net>

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] Questions on the number of packages listed by 'emerge --depclean'
  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 19:55 ` Richard Fish
  1 sibling, 1 reply; 6+ messages in thread
From: PaulNM @ 2006-07-20 19:47 UTC (permalink / raw
  To: gentoo-user

Vladimir G. Ivanovic wrote:
> When I run 'emerge --depclean' I get this at the end as output:
> 
>         Packages installed:   2305
>         Packages in world:    1762
>         Packages in system:   64
>         Unique package names: 2283
>         Required packages:    2322
>         
>      1. It seems I'm missing 17 (2322 - 2305 = 17) packages. How can
>         find out the names of these packages?

I don't know about this one, someone else can answer this.

>      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?
>              B. How did they get onto my system?

They are dependencies of packages in your world file (world includes
system). The only packages in world are those you specified on the
command line.  Example: "emerge pysol" would emerge pysol and it's
dependencies, like pysol-sound-server.  Only pysol will actually be in
the world file.

"emerge -p --emptytree world" may show you all the packages, but you'll
want to pipe it to a pager, cause it'll be a long list.

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

"emerge -p --prune world" will show you, but don't run it without the -p
option, you may very well need some of those.

> Thanks.
> 
> --- Vladimir
> 

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



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] Questions on the number of packages listed by 'emerge --depclean'
  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 19:55 ` Richard Fish
  2006-07-20 22:00   ` Dale
  1 sibling, 1 reply; 6+ messages in thread
From: Richard Fish @ 2006-07-20 19:55 UTC (permalink / raw
  To: gentoo-user

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



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] Questions on the number of packages listed by 'emerge --depclean'
  2006-07-20 19:47 ` PaulNM
@ 2006-07-20 20:08   ` Vladimir G. Ivanovic
  2006-07-20 21:10     ` Neil Bothwick
  0 siblings, 1 reply; 6+ messages in thread
From: Vladimir G. Ivanovic @ 2006-07-20 20:08 UTC (permalink / raw
  To: gentoo-user

Paul,

Thanks for your help. One more question...

Does 'emerge --update --deep' look for updates to packages like, using
your example, pysol-sound-server, i.e. packages not in my world file?

--- Vladimir

On Thu, 2006-07-20 at 15:47 -0400, PaulNM wrote:
> They are dependencies of packages in your world file (world includes
> system). The only packages in world are those you specified on the
> command line.  Example: "emerge pysol" would emerge pysol and it's
> dependencies, like pysol-sound-server.  Only pysol will actually be in
> the world file.

-- 
Vladimir G. Ivanovic <vgivanovic@comcast.net>

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] Questions on the number of packages listed by  'emerge --depclean'
  2006-07-20 20:08   ` Vladimir G. Ivanovic
@ 2006-07-20 21:10     ` Neil Bothwick
  0 siblings, 0 replies; 6+ messages in thread
From: Neil Bothwick @ 2006-07-20 21:10 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 549 bytes --]

On Thu, 20 Jul 2006 13:08:21 -0700, Vladimir G. Ivanovic wrote:

> Does 'emerge --update --deep' look for updates to packages like, using
> your example, pysol-sound-server, i.e. packages not in my world file?

emerge --update would catch this particular example. It updates the
packages listed plus any dependencies in their ebuilds. Adding --deep
makes emerge also consider the dependencies of those dependencies and so
on right down the tree.


-- 
Neil Bothwick

Yes, I am an agent of Satan, but my duties are largely ceremonial.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] Questions on the number of packages listed by 'emerge --depclean'
  2006-07-20 19:55 ` Richard Fish
@ 2006-07-20 22:00   ` Dale
  0 siblings, 0 replies; 6+ messages in thread
From: Dale @ 2006-07-20 22:00 UTC (permalink / raw
  To: gentoo-user

Richard Fish wrote:
> <snip>
> "emerge --prune --pretend world"
>
> Do *NOT* run this command without the --pretend option.
>
> -Richard
AMEN.  BE VERY CAREFUL with that one.  It can bite you badly.

Dale
:-)  :-)
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-07-20 22:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2006-07-20 22:00   ` Dale

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox