From owner-freebsd-questions@freebsd.org Mon May 24 19:35:18 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D904963B414 for ; Mon, 24 May 2021 19:35:18 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-oi1-x229.google.com (mail-oi1-x229.google.com [IPv6:2607:f8b0:4864:20::229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FpnVZ0Q4bz4hBv for ; Mon, 24 May 2021 19:35:17 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mail-oi1-x229.google.com with SMTP id w127so24240550oig.12 for ; Mon, 24 May 2021 12:35:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=w0vHcdpxfDCsYC5xuQ+3lgYy+eYWcD48DeJ3RGnBOTc=; b=KNl/yApKJZR9cSarjX6A9aROZ0Oz5TDiGbAAFE/9jYbjXqx2vL5V4hhwFCGqFTMHKr 2bm+0ApEYOjfKuzCEInSUcUJE6eoz7QScVja8RaqpdVRc/wD/57P2wRES4Hw5zZrYP44 lwlVqNJQ1J/iVJBgb3VzZHJv4VCy+4ZlFeT76l6bSdgmIgq2oOG7SXBkr0n6l5infcGo 0Yv+V6HMoqHkdjBCqZcRGAEkMXBNj3D9bXxgGmXGRxy2tdYkuWLFH9RqUYEIE9x4Y1qs sQIjur0tn3Tl1bCMrtW9mujec4xn+oFsIrApVc+vCoefB/3DSmBqqEaP8TGWfKojgFoi hIrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=w0vHcdpxfDCsYC5xuQ+3lgYy+eYWcD48DeJ3RGnBOTc=; b=pvYQqgUuXA+bJpwK7SIYTsV1H8EJvbTDTYWXi8Ib2WVk3byknOVpcdn2Nt0QFHWSdG ngN4wCmBPfTo4+GF7U/LGaDZ4N1cRdPHyURry72/nESotsa6GMI4OiXAJmTIdEmeSOGB yZ/KlqNg7EHqe3UKpqzHDNGChsxK3E1fvLPIlLpuE2Ls0OKJZ5XFMgDi2UsyNmO2T8Fu pIlszbCzOmkGjIdjbUzW4E/ODkl+4HnllrphO/eDUNEqWfDUwHSOMZZpvvKLfpwkTF/A 35JyKU9evJ7KkO6t/bZ1MughZD1Q7a8Qcb67XvrYTem+TPeK38s8Qeo7oNBAugWLZ9wv T0fQ== X-Gm-Message-State: AOAM531IZu/32DzwCiFvJXmLF7cgcs/WpwIhU6Fj8b5PIJSIBgNoYbc9 Gu434L0r5aAjrSjrbPlU/KBtLflMyijfbjSyjb/tME/Zp8HlDw== X-Google-Smtp-Source: ABdhPJzg0ZdHM3Y/PuV5696Pd4gO9SOrRnwGLKkklyb1s0VdUKkIEEX1Un/Z09mJz4TxyFTZcpeGxPg1eWf3I1wsteg= X-Received: by 2002:aca:b605:: with SMTP id g5mr11936066oif.127.1621884916542; Mon, 24 May 2021 12:35:16 -0700 (PDT) MIME-Version: 1.0 References: <20210524124023.6372a3383876a1196cf81705@3dresearch.com> In-Reply-To: <20210524124023.6372a3383876a1196cf81705@3dresearch.com> From: Kevin Oberman Date: Mon, 24 May 2021 12:35:00 -0700 Message-ID: Subject: Re: Updating /usr/ports To: Janos Dohanics Cc: FreeBSD Questions X-Rspamd-Queue-Id: 4FpnVZ0Q4bz4hBv X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=KNl/yApK; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of kob6558@gmail.com designates 2607:f8b0:4864:20::229 as permitted sender) smtp.mailfrom=kob6558@gmail.com X-Spamd-Result: default: False [-1.70 / 15.00]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FORGED_SENDER(0.30)[rkoberman@gmail.com,kob6558@gmail.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::229:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[rkoberman@gmail.com,kob6558@gmail.com]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(1.00)[1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::229:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::229:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 May 2021 19:35:18 -0000 On Mon, May 24, 2021 at 9:41 AM Janos Dohanics 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 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