Lots of installed ports show "succeeds index"

Kevin Oberman rkoberman at gmail.com
Thu Jul 24 17:19:45 UTC 2014


On Thu, Jul 24, 2014 at 4:42 AM, Christian Weisgerber <naddy at mips.inka.de>
wrote:

> On 2014-07-23, Matthew Seaman <m.seaman at infracaninophile.co.uk> wrote:
>
> > 'pkg version' priorities changed between repository catalogue, ports
> > index and generating the info out of the ports tree directly.  Now if
> > you have an INDEX file, pkg version will read that for preference, as
> > it's only about a zillion times faster than what it used to do, which
> > involves running make(1) in a bunch of ports.
> >
> > If you want the old behaviour either delete the INDEX file or use the -P
> > flag.
>
> -P does most certainly not provide the old behavior.  pkg version
> took a few seconds, now it takes two minutes on the same machine.
>
> --
> Christian "naddy" Weisgerber                          naddy at mips.inka.de
>

If 'pkg version' only took a few seconds for you, I suspect  you had very
few ports installed. It has always taken minutes for me.

That said, '-P' is much slower than the old default, even though it is
doing as close as possible to the same thing.

I suspect the slow-down is due to the overhead of the solver.  The solver
fixes many potential pkgdb issues, but it is probably a rather slow fix.
Perhaps that is why  use of the index is now the default. I have been using
'-I since moving to pkgng because it is almost instant... far faster then
the old package system.

Is there a reason you want to avoid using the index? It's worked just fine
for me for several months on systems with well over 1000 ports installed.
--
R. Kevin Oberman, Network Engineer, Retired
E-mail: rkoberman at gmail.com


More information about the freebsd-ports mailing list