Cannot override PACKAGESITE with "pkg -o"

I have installed FreeBSD version 14.3, pkgbasified it, and would now like to upgrade to version 15.

I have the following file inside /usr/local/etc/pkg/repos/FreeBSD-base.conf

Code:
FreeBSD-base: {
  url: "pkg+https://pkg.FreeBSD.org/${ABI}/base_release_3",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}

I would like to upgrade to 15.0 without modifying this file with the following command:
pkg -o PACKAGESITE=pkg+https://pkg.freebsd.org/FreeBSD:15:amd64/base_latest update -r FreeBSD-base

My problem is that no matter how I try to pass the PACKAGESITE variable, it always uses the one specified inside the FreeBSD-base.conf file.

Is what I want to do possible?
 
Back
Top