Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 07 Dec 2025 21:31:05 +0100
From:      vermaden <vermaden@interia.pl>
To:        freebsd-stable@FreeBSD.org, freebsd-pkgbase@FreeBSD.org
Subject:   Upgrade 15.0-PRERELEASE to 15.0-RELEASE
Message-ID:  <eidbkukpygqeefzghcwl@axur>

index | next in thread | raw e-mail



Hi,

how one upgrades 15.0-PRERELEASE to 15.0-RELEASE version in PKGBASE world?

I have tried various things but ... pkg(8) just ignores everything.

# uname -a
FreeBSD freebsd15pre 15.0-PRERELEASE FreeBSD 15.0-PRERELEASE main-n279837-2b5de4330ee1 GENERIC amd64

# freebsd-version                
15.0-PRERELEASE

# freebsd-version -kur
15.0-PRERELEASE
15.0-PRERELEASE
15.0-PRERELEASE

I have put these into the /etc/pkg/FreeBSD.conf file.

The 'url:' and 'mirror_type:' need to be modified this way because its highly secure environment that can access outside world only using proxy:
- https://github.com/freebsd/poudriere/issues/1279#issuecomment-3530320210

# cat /etc/pkg/FreeBSD.conf  
FreeBSD-ports: {
  url: "https://pkg.FreeBSD.org/${ABI}/latest",
  mirror_type: "none",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}
FreeBSD-ports-kmods: {
  url: "https://pkg.FreeBSD.org/${ABI}/kmods_latest_${VERSION_MINOR}",
  mirror_type: "none",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}
FreeBSD-base: {
  url: "https://pkg.FreeBSD.org/${ABI}/base_release_${VERSION_MINOR}",
  mirror_type: "none",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkgbase-${VERSION_MAJOR}",
  enabled: no
}

Now ... attempts to upgrade it below.

# pkg update                
Updating FreeBSD-ports repository catalogue...
FreeBSD-ports repository is up to date.
Updating FreeBSD-ports-kmods repository catalogue...
FreeBSD-ports-kmods repository is up to date.
All repositories are up to date.

# pkg upgrade                                                               
Updating FreeBSD-ports repository catalogue...
FreeBSD-ports repository is up to date.
Updating FreeBSD-ports-kmods repository catalogue...
FreeBSD-ports-kmods repository is up to date.
All repositories are up to date.
Checking for upgrades (116 candidates): 100%
Processing candidates (116 candidates): 100%
Checking integrity... done (0 conflicting)
Your packages are up to date.

# env ABI=FreeBSD:15:amd64 pkg-static upgrade -r FreeBSD-base 
pkg-static: Setting ABI requires setting OSVERSION, guessing the OSVERSION as: 1500000
Updating FreeBSD-base repository catalogue...
FreeBSD-base is up to date.
pkg-static: Repository FreeBSD-base cannot be opened. 'pkg update' required
Checking for upgrades (0 candidates): 100%
Processing candidates (0 candidates): 100%
Checking integrity... done (0 conflicting)
Your packages are up to date.

# env OSVERSION=1500063 ABI=FreeBSD:15:amd64 pkg-static update -f              
Updating FreeBSD-ports repository catalogue...
Fetching meta.conf: 100%    179 B   0.2kB/s    00:01    
Fetching data.pkg: 100%   10 MiB  10.9MB/s    00:01    
Processing entries:   0%
Newer FreeBSD version for package zycore-c:
To ignore this error set IGNORE_OSVERSION=yes
- package: 1500068
- running userland: 1500063
Ignore the mismatch and continue? [y/N]: y
Processing entries: 100%
FreeBSD-ports repository update completed. 36873 packages processed.
Updating FreeBSD-ports-kmods repository catalogue...
Fetching meta.conf: 100%    179 B   0.2kB/s    00:01    
Fetching data.pkg: 100%   31 KiB  31.8kB/s    00:01    
Processing entries: 100%
FreeBSD-ports-kmods repository update completed. 207 packages processed.
All repositories are up to date.

# env OSVERSION=1500063 ABI=FreeBSD:15:amd64 pkg-static upgrade -r FreeBSD-base
Updating FreeBSD-base repository catalogue...
FreeBSD-base is up to date.
pkg-static: Repository FreeBSD-base cannot be opened. 'pkg update' required
Checking for upgrades (0 candidates): 100%
Processing candidates (0 candidates): 100%
Checking integrity... done (0 conflicting)
Your packages are up to date.

# env ABI=FreeBSD:15:amd64 pkg-static upgrade -r FreeBSD-base
pkg-static: Setting ABI requires setting OSVERSION, guessing the OSVERSION as: 1500000
Updating FreeBSD-base repository catalogue...
FreeBSD-base is up to date.
pkg-static: Repository FreeBSD-base cannot be opened. 'pkg update' required
Checking for upgrades (0 candidates): 100%
Processing candidates (0 candidates): 100%
Checking integrity... done (0 conflicting)
Your packages are up to date.

These are the installed packages:

# pkg info | grep '^FreeBSD'
FreeBSD-acct-15.snap20250819212823 System Accounting Utilities
FreeBSD-acct-dbg-15.snap20250819212823 System Accounting Utilities (debugging symbols)
FreeBSD-acct-man-15.snap20250808125411 System Accounting Utilities (manual pages)
(...)
FreeBSD-zfs-dev-15.snap20250824225045 ZFS Libraries and Utilities (development files)
FreeBSD-zfs-man-15.snap20250820135732 ZFS Libraries and Utilities (manual pages)
FreeBSD-zoneinfo-15.snap20250808125411 Timezone database

The '.snap*' part varies in these:

# pkg info | awk '/^FreeBSD/ {print $1}' | awk -F '.' '{print $NF}' | sort -u
snap20250808125411
snap20250810044432
snap20250810084446
snap20250815023003
snap20250815041637
snap20250815064514
snap20250815180528
snap20250817070811
snap20250818144815
snap20250818161909
snap20250819125507
snap20250819212823
snap20250820135732
snap20250821171553
snap20250821205247
snap20250821215856
snap20250822114024
snap20250822144150
snap20250822153944
snap20250822163806
snap20250822185245
snap20250822194944
snap20250822224302
snap20250823012244
snap20250823174650
snap20250824202354
snap20250824225045
snap20250824235045

Any hints?

Thanks,
vermaden




help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?eidbkukpygqeefzghcwl>