From nobody Sun Feb 12 16:29:09 2023 X-Original-To: dev-commits-doc-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PFCbT4jssz3q3Ng for ; Sun, 12 Feb 2023 16:29:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PFCbT40ndz3KLc; Sun, 12 Feb 2023 16:29:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676219349; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mgA+02hQUlXchRxWPnEgP9Cvu4KNecz+TQbL/MTnLx4=; b=p6Oa8IwfdvcuQvWBfbAHKsNnidKsSwH9XTURQhDVj0xqtAsgmuUfsutXyf70F2oZ7jRgBO YJ2RiOuDPoRHnC+peUKpw27B3HiAXNSHsjKnz1lqehUNXk4sLCOZ6soZP/b63CCHMsjlaE UGYuIyd1UIE6FcehJoDfcwaHvw0KcZmYTfJ04uZpBvSJ3+RaAPgmwtQ8r9vJecxfRr0FpY ywfy2EyofXMuPKRgXlBoBOrEDKiG2e7eUYOKmKckD8pAWMn45tpTbu7wAH6FsM8fgfP/3E 6hehiu6xvRp/j5FyMJjxfneuK3aDZGRI45tf7Y4xXN0+PG0vNb1Bl52OzZfuXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676219349; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mgA+02hQUlXchRxWPnEgP9Cvu4KNecz+TQbL/MTnLx4=; b=dVPLvyzUVdSjqJrs9BM3Si4fp2mwuKREUEi1O0d18BjEA7bLAkJuL8nxtLasHS2gJbLMzv Bl7akIyJrhmrqE2OyDzOPPAZ9BmURba+7r2VCwHuIXgBaDVJtxZqJ/+defcQuvZCl98/5i qu5361PXmKDXYsOIdRuy7g5nDIonPvz9AO6UV5mUS6dZd6RYXnpCHOBFs9BLyv7IQz9Gy4 QOWLTW6WVhZD3szy7lImLakUFREnSAjx7Ve85U+6QRrV4faZe1ociCWPa0HfhluSiWcm8F ELVe8cl7wQCk82L+SadY4NC6lplNmE4b5FEDQeyGwwcq5CI++jLXLGNtrPA9Ww== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676219349; a=rsa-sha256; cv=none; b=segfLwOE9lbKmQDYERWGw77OFYzxsG3MRgHgmXbxFIaRizc4A8rLaym9mQ5H5wcElumn0c inEYdUcXWW2BJNCWbzENZrd7L5mJf7RaT37c/U5ejglz/K3WWpU8KVc2Gt4bCVHrU9tfcH oaBRMuyfzVHXK+3r3UlGlVJ1umXPrs4kMbpk7W1R/uif2+wpKLUe7VXDP16OT4isepmgFr P98khu2JsQXbXypObtuOx0lboGTXMZRA1E1/m0URKx5fMaRaPOr9xi7a1SAsi2pLwlRTuF p1yfm826P699Po2FgLPsdi9aoMAg0HQCyXdu+L7Qo/50AKkj8x9QCKeg/lb09g== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PFCbT35sZzkrX; Sun, 12 Feb 2023 16:29:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 31CGT93P097524; Sun, 12 Feb 2023 16:29:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31CGT9Id097523; Sun, 12 Feb 2023 16:29:09 GMT (envelope-from git) Date: Sun, 12 Feb 2023 16:29:09 GMT Message-Id: <202302121629.31CGT9Id097523@gitrepo.freebsd.org> To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org From: Mateusz Piotrowski <0mp@FreeBSD.org> Subject: git: 5409438503 - main - handbook: Simplify instructions for switching to Latest pkg branch List-Id: Commit messages for all branches of the doc repository List-Archive: https://lists.freebsd.org/archives/dev-commits-doc-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-doc-all@freebsd.org X-BeenThere: dev-commits-doc-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: 0mp X-Git-Repository: doc X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 54094385038889f702a92018bf8fc520702b4153 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by 0mp: URL: https://cgit.FreeBSD.org/doc/commit/?id=54094385038889f702a92018bf8fc520702b4153 commit 54094385038889f702a92018bf8fc520702b4153 Author: Mateusz Piotrowski <0mp@FreeBSD.org> AuthorDate: 2023-02-12 16:26:41 +0000 Commit: Mateusz Piotrowski <0mp@FreeBSD.org> CommitDate: 2023-02-12 16:28:08 +0000 handbook: Simplify instructions for switching to Latest pkg branch Instead of copying the whole FreeBSD.conf to /usr/local, it's sufficient to override the `url` value. UCL will take care of the rest. --- .../content/en/books/handbook/ports/_index.adoc | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/documentation/content/en/books/handbook/ports/_index.adoc b/documentation/content/en/books/handbook/ports/_index.adoc index aecf2aa59b..dd95599797 100644 --- a/documentation/content/en/books/handbook/ports/_index.adoc +++ b/documentation/content/en/books/handbook/ports/_index.adoc @@ -191,30 +191,15 @@ Branches are named according to the year (YYYY) and quarter (Q1-4) they are crea For example, the quarterly branch created in January 2023, is named 2023Q1. And the `Latest` branch provides the latest versions of the packages to the users. -To switch from quarterly to latest run the following commands: +To switch man:pkg[8] from Quarterly to Latest run the following commands: [source,shell] .... # mkdir -p /usr/local/etc/pkg/repos -# cp /etc/pkg/FreeBSD.conf /usr/local/etc/pkg/repos/FreeBSD.conf +# echo 'FreeBSD: { url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest" }' > /usr/local/etc/pkg/repos/FreeBSD.conf .... -Edit the file `/usr/local/etc/pkg/repos/FreeBSD.conf` and change the string _quarterly_ to _latest_ in the `url:` line. - -The result should be similar to the following: - -[.programlisting] -.... -FreeBSD: { - url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest", - mirror_type: "srv", - signature_type: "fingerprints", - fingerprints: "/usr/share/keys/pkg", - enabled: yes -} -.... - -And finally run this command to update from the new (latest) repository metadata. +Then run this command to update the local package repositories catalogues for the Latest branch: [source,shell] ....