On Tuesday 09 September 2003 23:44, Dhruba Bandopadhyay wrote:
> keanu wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> >>This gives 402 packages.  Surely that can't be right for number of
> >>packages in the category 'system'.
> >
> > i don't know what file it is in but you can do
> >
> > emerge -pve --nodeps system | grep ebuild | wc -l
> > which gives 68 for me
>
> Thanks.  I simplified that to:
>
> emerge -Oevp system | grep -c ebuild
>
> It seems it cannot be done any faster e.g. from a file.

A faster way would be to use a regular expression on 
/etc/make.profile/packages to look for lines beginning with "*". However, 
this will return wrong results if a particular package is not installed for 
any reason.

Jason

--
[EMAIL PROTECTED] mailing list

Reply via email to