Re: How to upgrade a 15.0 pkgbase system to 15.1?

Mark Millard <[email protected]> Tue, 16 Jun 2026 17:35:00 -0700
Newsgroups gmane.os.freebsd.stable
Message-ID <[email protected]>
On 6/16/26 17:06, Tamás Nagy wrote:
> I am following the link
> "https://www.freebsd.org/releases/15.1R/upgrading/#upgrade-pkg", but
> the command "pkg -oABI=FreeBSD:15:$(uname -p) -oOSVERSION=1501000
> upgrade -r FreeBSD-base" is not working on my 15.0.
> 
> 1. The handbook does not say that "FreeBSD-base" must be enabled which
> is disabled by default. This is very confusing.

What version of pkg? With a modern enough version of pkg (2.7.4 and
2.7.5), the: "-r FreeBSD-base" on the command line would enable just
FreeBSD-base for the command --and disable any others for just that command.

Unfortunately, with older versions of pkg, the notation is not handled
that way. The man pages were changed way back in something like 1.21.0
but the change was actually only implemented recently.

As stands, this means that quarterly users do not have the feature:
2.6.2 is in quarterly, nothing later.

> 2. Mike provided the steps to enable it in the chain above but it
> still does not work for me. It reports that "FreeBSD-base repository
> is up to date." "-oOSVERSION=1501000" has no effect.
> 3. I managed to upgrade my Lenovo yesterday but I actually forced the
> minor version replacing ${VERSION_MINOR} with 1 and and used
> signature_type:"none".
> 4. I am trying to do the right thing on my second install, can you help?
> 
> 
> On Tue, 16 Jun 2026 at 23:58, Mike Tancsa <[email protected]> wrote:
>>
>> On 6/16/2026 9:03 AM, [email protected] wrote:
>>> would be nice to link to/mention in announcement, like we previously used to do
>>>
>>> -------- Original Message --------
>>> On Tuesday, 06/16/26 at 16:55 Lexi Winter <[email protected]> wrote:
>>> Patrick M. Hausen wrote in <[email protected]>:
>>>> I looked for the answer in the announcement and in the release notes
>>>> without success. Would someone be so kind to enlighten me?
>>> https://www.freebsd.org/releases/15.1R/upgrading/#upgrade-pkg
>>>
>> I just tried this on my test VM and it worked without issue.
>>
>> bectl create -r pre-15.1
>> pkg upgrade -yr FreeBSD-ports pkg
>> pkg -oABI=FreeBSD:15:amd64 -oOSVERSION=1501000 upgrade -r FreeBSD-base
>> find /etc /usr/local/etc -name '*.pkgnew' -ls
>>
>>
>> cd /boot/efi/efi/boot/
>> cp /boot/loader.efi bootx64.efi
>>
>>
>> 0{cage2}# freebsd-version
>> 15.1-RELEASE
>> 0{cage2}#
>>
>>
>>   cat /etc/pkg/FreeBSD.conf
>> #
>> # To disable a repository, instead of modifying or removing this file,
>> # create a /usr/local/etc/pkg/repos/FreeBSD.conf file, e.g.:
>> #
>> #   mkdir -p /usr/local/etc/pkg/repos
>> #   echo "FreeBSD-ports: { enabled: no }" >
>> /usr/local/etc/pkg/repos/FreeBSD.conf
>> #   echo "FreeBSD-ports-kmods: { enabled: no }" >>
>> /usr/local/etc/pkg/repos/FreeBSD.conf
>> #
>> # Note that the FreeBSD-base repository is disabled by default.
>> #
>>
>> FreeBSD-ports: {
>>    url: "pkg+https://pkg.FreeBSD.org/${ABI}/latest",
>>    mirror_type: "srv",
>>    signature_type: "fingerprints",
>>    fingerprints: "/usr/share/keys/pkg",
>>    enabled: yes
>> }
>> FreeBSD-ports-kmods: {
>>    url: "pkg+https://pkg.FreeBSD.org/${ABI}/kmods_latest${VERSION_MINOR}",
>>    mirror_type: "srv",
>>    signature_type: "fingerprints",
>>    fingerprints: "/usr/share/keys/pkg",
>>    enabled: yes
>> }
>> FreeBSD-base: {
>>    url: "pkg+https://pkg.FreeBSD.org/${ABI}/base_release_${VERSION_MINOR}",
>>    mirror_type: "srv",
>>    signature_type: "fingerprints",
>>    fingerprints: "/usr/share/keys/pkgbase-${VERSION_MAJOR}",
>>    enabled: no
>> }
>>
>> 0{cage2}# cat /usr/local/etc/pkg/repos/*
>> FreeBSD-ports-kmods: { enabled: no }
>> FreeBSD-base: { enabled: yes }
>> 0{cage2}#
>>
>>      ---Mike
>>
>>>
>>
> 
> 


-- 
===
Mark Millard
marklmi at yahoo.com