From owner-freebsd-questions@freebsd.org Mon May 31 23:59: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 740416337FA for ; Mon, 31 May 2021 23:59:18 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-ot1-x334.google.com (mail-ot1-x334.google.com [IPv6:2607:f8b0:4864:20::334]) (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 4FvC1x4hP8z3R8H for ; Mon, 31 May 2021 23:59:17 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mail-ot1-x334.google.com with SMTP id 69-20020a9d0a4b0000b02902ed42f141e1so12524451otg.2 for ; Mon, 31 May 2021 16:59: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=yrbdKxyRWdQAKVABIRt0+FWoJZI9gR2sFooAfEQYZC0=; b=SQB5YCMW06UQzwij4P9S/z43EUeLJEeV4NNUQEnKy3rRKvv8Z9TkW5nvcCXJME4ERa U6fNFrDZQWSZKTQyfS0Qn4vtpg66OuGdiVQCgvC/pMwLPlLMEnBTN8Q4LFQCxzQKR5Zx zXpCz3lYOxn3IUVe4UNblPxDcX6rESpkrxbKqAz9sfBmALrf+ovAk9LdE9A6/B81yVqi dd7bRPMKAcV5oJ90VQTTk7ZlDrBMQJ6Wmm6+Ze0lQb7kKxE3Jxxp4gboGkWu+4eYd54A sVlFfOWnA6F9LCJN+mZEer1rFM6p2SEj5vudWJumDlvSsj8d4DxSmBWbm8tFrro2U/sj UuOw== 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=yrbdKxyRWdQAKVABIRt0+FWoJZI9gR2sFooAfEQYZC0=; b=TE2dfsPEv0SMGTgdZge3PHnT46DITy0CWawuGlKfi5t3mgPvOWa/DYOhjWB24hGdh/ MOiUVUflZB5sxNitNHDHB/BWNfRWH3z6mGi+0pij79zt4VbJ6KyLpj2J4Tih5HEXWLtL ggGcdSHhwCYDSM9EjPuIRk0i4JqFs/Kta4W4oE78J//evm3I6o4S75NDMVMH5ktlCS7P yDSK65aioUG8JN1YLbY2UQMVDvTkKTTx2S5L1ryXRvOSMqIO1izKIN8mkn8q1wVoS7Y1 WWAnLhrcRkwi7Y2vxkhNETapnHAK4IAbcGlqpytL+Hnopupw9qS3z88VcvnSHzWjx1LF OWNw== X-Gm-Message-State: AOAM532OnoL7V93N/z2Bq4XJCWl+HGF+fa5XhBjWVZFu+ZtUoKW0I2/4 A62OH2nrM3RhIigL0dpgOUVB4DBQPM8qjFxnes0= X-Google-Smtp-Source: ABdhPJxxCxc+4kEQp+OnNXnf1MZJ7V0QtwS7yC1uqsBRGBBxRhWxAoAgGJsC3YSv7wYL0Jw6dhugotbPbonZNtCcU84= X-Received: by 2002:a9d:5552:: with SMTP id h18mr19895934oti.104.1622505556338; Mon, 31 May 2021 16:59:16 -0700 (PDT) MIME-Version: 1.0 References: <20210528144112.GA961@lena.kiev> <20210529232045.1ce80e04@gumby.homeunix.com> In-Reply-To: <20210529232045.1ce80e04@gumby.homeunix.com> From: Kevin Oberman Date: Mon, 31 May 2021 16:59:00 -0700 Message-ID: Subject: Re: Updating /usr/ports To: RW Cc: Mailinglists FreeBSD X-Rspamd-Queue-Id: 4FvC1x4hP8z3R8H X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=SQB5YCMW; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of kob6558@gmail.com designates 2607:f8b0:4864:20::334 as permitted sender) smtp.mailfrom=kob6558@gmail.com X-Spamd-Result: default: False [-3.70 / 15.00]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; 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]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FREEMAIL_TO(0.00)[googlemail.com]; 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::334: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_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::334:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::334: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" 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, 31 May 2021 23:59:18 -0000 On Sat, May 29, 2021 at 3:21 PM RW via freebsd-questions < freebsd-questions@freebsd.org> wrote: > On Sat, 29 May 2021 09:41:11 -0700 > Kevin Oberman wrote: > > > > Does "pkg version" use some other way of doing things than INDEX? I > > checked a system that I recently upgraded to 13.0 and it lacks > > INDEX-13 (or any INDEX-), but "pkg version -vL=" works fine. It is > > slower, though. It was almost instantaneous and now takes about 45 > > seconds. > > > I was just reading the man page for pkg-version; by default the order > it tries is INDEX, ports tree, package repository. > > This seems strange to me as I would have expected it to default to the > repository. > I would imagine that INDEX is preferred for speed. Milli-seconds vs Many-seconds. Using repo is probably not a good way to go as people maintaining a local ports tree are likely to build ports where the repo could be days behind the tree. I have seen the builders take over four days to run a large update and as much as 4 days to update all of the mirrors. That is about a week and there can be a LOT of updates in a week. Makes maintaining a local tree a bit less desirable. ports tree is dog slow compared to INDEX and probably repo, but it is reliable and always in sync with the current local copy of the tree. On a system with 1500 or so ports installed, if it is done as I guess it is, this would take a while, though still not as long as building INDEX locally as it would only care about installed ports. The above is based on behavior of things and may be wrong. -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkoberman@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683