> On Mar 19, 2026, at 9:42 AM, Paul Mather <[email protected]> wrote:
>
> On Mar 19, 2026, at 7:29 am, Miroslav Lachman <[email protected]> wrote:
>
>> On 19/03/2026 11:35, Nikos Vassiliadis wrote:
>>> On 3/19/26 12:14, vermaden wrote:
>>
>> [..]
>>
>>>> You can upgrade only with specified 'FreeBSD-ports' and 'FreeBSD-
>>>> ports-kmods' repos:
>>>>
>>>> root@freebsd15:~ # pkg upg -r FreeBSD-ports -r FreeBSD-ports-kmods
>>
>> [..]
>>
>>> Hi vermaden,
>>> Oh yes, that does what I asked for. Thank you!
>>> For completeness reasons I think it would be nice to add an option to
>>> pkg to invert matches. Maybe it should invert -r as well!
>>
>> First and most important (at least for me) would be a clear separation of
>> base system upgrades from 3rd packages, without having to enter
>> 40-character-long arguments.
>
>
> The "pkg" command allows you to define aliases in pkg.conf. So, if you
> wanted to save on typing, you could, say, define "base-upgrade" and
> "ports-upgrade" aliases to restrict "pkg upgrade" to just the appropriate
> repositories.
Since this is one of the biggest changes to the upgrade system since the OS was
introduced, it might save those answering questions on the mailing lists and
forums to put some useful aliases in the stock pkg.conf to deal with this.
Similar with having this openly documented somewhere as opposed to people just
grunting that "you know pkg can handle multiple repos (even though 99% of users
out there have likely never had a need to switch repos when invoking pkg)".
Charles
> Cheers,
>
> Paul.