Re: RFC: Renaming "FreeBSD" repo in /etc/pkg/FreeBSD.conf to "FreeBSD-ports"
Date: Wed, 20 Aug 2025 10:25:43 UTC
On 20/08/2025 11:33, Dag-Erling Smørgrav wrote: > Miroslav Lachman <000.fbsd@quip.cz> writes: >> If there is one file for each repository, it can be managed using >> simple tools such as cp / rm / sed to enable, disable or modify >> repositories - good for scripted setups and automation. > > The correct way to disable one of these repositories is to add > > repository-name: { enabled: false } > > in a file in /usr/local/etc/pkg/repos. As if turning it on and off were the only possible configuration change. We often change the URL or priority. And that's very easy to do using 'sed' if there is only one repository in a single file. Kind regards Miroslav Lachman