Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 May 2021 12:35:00 -0700
From:      Kevin Oberman <rkoberman@gmail.com>
To:        Janos Dohanics <web@3dresearch.com>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Updating /usr/ports
Message-ID:  <CAN6yY1tjCCiSahAaVAnH2HAWuZCAw29ZEPrP2LerhEuFaK=8xw@mail.gmail.com>
In-Reply-To: <20210524124023.6372a3383876a1196cf81705@3dresearch.com>
References:  <20210524124023.6372a3383876a1196cf81705@3dresearch.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, May 24, 2021 at 9:41 AM Janos Dohanics <web@3dresearch.com> wrote:

> Hello,
>
> The Handbook says "As needed, update /usr/ports after the initial Git
> checkout:
>
> # git -C /usr/ports pull"
>
> [root@frigg ~]# portversion -v | grep -c "<"
> [Reading data from pkg(8) ... - 294 packages found - done]
> 7
>
> [root@frigg ~]# git -C /usr/ports pull
> [...]
> 855 files changed, 8990 insertions(+), 7435 deletions(-)
>
> [root@frigg ~]# portversion -v | grep -c "<"
> [Reading data from pkg(8) ... - 294 packages found - done]
> 7
>
> However, you also need to 'make index' which the Handbook does not mentio=
n:
>
> [root@frigg /usr/ports]# make index
>
> [root@frigg /usr/ports]# portversion -v | grep -c "<"
> [Reading data from pkg(8) ... - 294 packages found - done]
> [Updating the portsdb <format:bdb_btree> in /usr/ports ... - 31205 port
> entries found
> .........1000.........2000.........3000.........4000.........5000........=
.6000.........7000.........8000.........9000.........10000.........11000...=
......12000.........13000.........14000.........15000.........16000........=
.17000.........18000.........19000.........20000.........21000.........2200=
0.........23000.........24000.........25000.........26000.........27000....=
.....28000.........29000.........30000.........31000..
> ..... done]
> 12
>
> --
> Janos Dohanics
>
If you don't mind being a couple of hours out of date, "make -C /usr/ports
feetchindex.". The index file is generated every 3 hours (I think), and
it's a lot faster than making it yourself.

Also, the grep is not needed. 'pkg version -vl<" (or, "-vL=3D" to catch
orphaned ports) will do the same thing. Don't worry if you are not using
ports. pkg does exactly the same things for both ports and packages except
for actually building ports. I thought that portversion was long gone. It's
not on either v12 or 13 on my systems.
--
Kevin Oberman, Part time kid herder and retired Network Engineer
E-mail: rkoberman@gmail.com
PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN6yY1tjCCiSahAaVAnH2HAWuZCAw29ZEPrP2LerhEuFaK=8xw>