Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

sysrc utility

1 view
Skip to first unread message

Ernie Luzar

unread,
Apr 18, 2017, 9:25:12 AM4/18/17
to
Can I use the sysrc utility to change a line in /etc/pkg/FreeBSD.conf
from url: "pkg+http://pkg.Freebsd.org/${ABI}/quarterly",
to url: "pkg+http://pkg.Freebsd.org/${ABI}/latest",

If so, how would it be coded?

Thanks
_______________________________________________
freebsd-...@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questi...@freebsd.org"

Polytropon

unread,
Apr 18, 2017, 9:53:48 AM4/18/17
to
On Tue, 18 Apr 2017 09:24:54 -0400, Ernie Luzar wrote:
> Can I use the sysrc utility to change a line in /etc/pkg/FreeBSD.conf
> from url: "pkg+http://pkg.Freebsd.org/${ABI}/quarterly",
> to url: "pkg+http://pkg.Freebsd.org/${ABI}/latest",
>
> If so, how would it be coded?

The sysrc tool is intended for system configuration files
in the "sh name=value" style, like /etc/rc.conf and others.
The pkg configuration file is in a very different format.

See "man sysrc" for details, FILES section.



--
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...

Troels Agergaard Jacobsen

unread,
Apr 19, 2017, 8:35:11 AM4/19/17
to
You can add incremental configs in /usr/local/etc:

/usr/local/etc/pkg/repos/FreeBSD.conf:
FreeBSD: {
url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
}

This will only change the url and keep the rest.

Best regards
Troels
0 new messages