From owner-freebsd-questions@freebsd.org Fri May 28 13:01:48 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 0DE08653492 for ; Fri, 28 May 2021 13:01:48 +0000 (UTC) (envelope-from web@3dresearch.com) Received: from smtpg.telissant.net (smtpg.telissant.net [104.225.1.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Fs4Zg20k1z3HC2 for ; Fri, 28 May 2021 13:01:46 +0000 (UTC) (envelope-from web@3dresearch.com) Received: from sacada.3dresearch.com (localhost [127.0.0.1]) by smtpg.telissant.net (Postfix) with ESMTP id 4Fs4ZX4Yjqz2D1r6 for ; Fri, 28 May 2021 09:01:40 -0400 (EDT) X-Virus-Scanned: amavisd-new at telissant.net Received: from smtpg.telissant.net ([127.0.0.1]) by sacada.3dresearch.com (sacada.3dresearch.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7t2SYz072pCz for ; Fri, 28 May 2021 09:01:40 -0400 (EDT) Received: from elettra.3dresearch.com (unknown [71.112.242.160]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: elettra@sacada.3dresearch.com) by smtpg.telissant.net (Postfix) with ESMTPSA id 4Fs4ZX1FQXz2D1r8 for ; Fri, 28 May 2021 09:01:40 -0400 (EDT) Received: from elettra.3dresearch.com (localhost [127.0.0.1]) by elettra.3dresearch.com (Postfix) with SMTP id 4CD9A86F93 for ; Fri, 28 May 2021 09:01:39 -0400 (EDT) Date: Fri, 28 May 2021 09:01:31 -0400 From: Janos Dohanics To: FreeBSD Questions Subject: Re: Updating /usr/ports Message-Id: <20210528090131.c77dc0007fc706bb91abe15c@3dresearch.com> In-Reply-To: References: <20210524124023.6372a3383876a1196cf81705@3dresearch.com> <20210526001153.e668d925df825e3486c5f7b9@3dresearch.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4Fs4Zg20k1z3HC2 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of web@3dresearch.com designates 104.225.1.73 as permitted sender) smtp.mailfrom=web@3dresearch.com X-Spamd-Result: default: False [-0.80 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ENVFROM_SERVICE_ACCT(1.00)[]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+a:smtpg.telissant.net]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RECEIVED_SPAMHAUS_PBL(0.00)[71.112.242.160:received]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[104.225.1.73:from]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:36236, ipnet:104.225.1.0/24, country:US]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; RCVD_COUNT_FIVE(0.00)[5]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; DMARC_NA(0.00)[3dresearch.com]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[104.225.1.73:from:127.0.2.255]; FROM_SERVICE_ACCT(1.00)[]; MAILMAN_DEST(0.00)[freebsd-questions] 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: Fri, 28 May 2021 13:01:48 -0000 On Thu, 27 May 2021 17:01:52 -0700 Kevin Oberman wrote: > [...] > > > > Also, 'portsnap fetch' && 'portsnap update' did update the index. My > > reading of the Handbook was that 'git -C /usr/ports pull' alone gave > > the same result as 'portsnap fetch' && 'portsnap update'. > > > > > Also, the grep is not needed. 'pkg version -vl<" (or, "-vL=" 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. > > > > My bad habit, thank you for the reminder! > > > > -- > > Janos Dohanics > > > If you are trying to replace portsnap, I think the answer is > net/gitup. This only requires a single command, "gitup ports", and > you get your index updated along with updating all ports. I believe > that the plan is to put gitup into the base system fairly soon. I > have not looked at whether 14-current has gitup, yet. > > And, yes, it looks like the handbook needs some work as gitup is not > yet even mentioned. Like portsnap, gitup is for people who want to > maintain an up to date ports tree, but not good for developers. They > do need to use git and either generate the index or fetch it. > -- > Kevin Oberman, Part time kid herder and retired Network Engineer > E-mail: rkoberman@gmail.com > PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683 Thank you again. -- Janos Dohanics