Hi

FYI

Re: <https://wiki.freebsd.org/action/info/PkgBase?action=diff&rev2=94&rev1=93>

The cat approach in the wiki was ambiguous, it failed for me as shown below. At the '> ' prompt, I keyed Control-C to regain a normal prompt.

The example that's now in the wiki should be a valid JSON text data file. (Not that strict JSON is essential, it's simply a good example.)

root@macbookpro:/usr/local/etc/pkg/repos # sh
# cat <<EOF >/usr/local/etc/pkg/repos/FreeBSD-base.conf
>
> > FreeBSD-base: {
> >   url: "pkg+https://pkg.FreeBSD.org/\${ABI}/base_release_0";,
> >   mirror_type: "srv",
> >   signature_type: "fingerprints",
> >   fingerprints: "/usr/share/keys/pkg",
> >   enabled: yes
> > }
> > EOF
>
>
# file /usr/local/etc/pkg/repos/FreeBSD-base.conf
/usr/local/etc/pkg/repos/FreeBSD-base.conf: cannot open `/usr/local/etc/pkg/repos/FreeBSD-base.conf' (No such file or directory)
# exit

Reply via email to