git: 5409438503 - main - handbook: Simplify instructions for switching to Latest pkg branch

From: Mateusz Piotrowski <0mp_at_FreeBSD.org>
Date: Sun, 12 Feb 2023 16:29:09 UTC
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]
 ....