Skip to main content
  1. Posts/

Fix Upgrade Issues After Using Pkgbase on FreeBSD 15.x

I recently upgraded my nas from 14.x to 15-RELEASE and then converted to pkgbase because I just loved the idea of being able to do pkg update and pkg upgrade for all upgrades moving forward. After the upgrade, the version I was on was 15.RELEASE-p1. After about a month or so, when I noticed p2 was out, I ran pkg update and pkg upgrade, it still kept me at p1. Investigating, I figured when I ran the lua based script to upgrade to pkgbase, it didn’t (or I forgot) to say yes for FreeBSD base repository. If you’re like me, here’s the instructions to fix it quickly.

  • Open this file, I’ll use vim
vim  /usr/local/etc/pkg/repos/FreeBSD-base.conf
  • Change enabled: no to enabled: yes
  • Save it.
  • Make sure you did your edit correctly.
# cat /usr/local/etc/pkg/repos/FreeBSD-base.conf            
FreeBSD-base: { enabled: yes }
  • Now do pkg update and pkg upgrade and you should get into the latest upgrade.
  • Reboot (sadly, you’ll have to reboot to be able to use the new kernel)
  • After reboot, confirm you’ve upgraded by running:
freebsd-version -kru
  • All the entries listed by the command should be the latest version and patch levels.

🍷

Sanjay Regmi
Author
Sanjay Regmi