Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Jun 2026 16:01:11 +0200
From:      =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@FreeBSD.org>
To:        Mike <the.lists@mgm51.com>
Cc:        freebsd-pkgbase@FreeBSD.org
Subject:   Re: Moving to pkg-based in 15.1 ...
Message-ID:  <86a4sot2l4.fsf@ltc.des.dev>
In-Reply-To: <db84590d-4284-4a65-83bd-65b517fb783d@mgm51.com> (Mike's message of "Sat, 20 Jun 2026 19:25:02 -0400")
References:  <db84590d-4284-4a65-83bd-65b517fb783d@mgm51.com>

index | next in thread | previous in thread | raw e-mail

Mike <the.lists@mgm51.com> writes:
> Now, as I understand the pkgbase system, it has gotten a bit more
> complex.

On the contrary...

> I no longer see that easy ability to update from one patch level to
> the current patch level within the installed version.

To upgrade a pkgbase system, simply run:

    # pkg upgrade

or, if you want to upgrade _only_ the base system and leave the rest
untouched:

    # pkg upgrade -r FreeBSD-base

This essentially replaces `freebsd-update fetch` and `freebsd-update
install` in your script, including the intervening prompt, and the rest
will work as before.  If you want to get fancy, do:

    # pkg upgrade -r FreeBSD-base -Fy

to download updated packagtes without installing them, then

    # pkg upgrade -r FreeBSD-base

to prompt the user and install the downloaded packages.  This will also
avoid a rare situation (very unlikely to occur with pkgbase on a release
branch) where pkg computes an upgrade plan, prompts the user, then
computes a different plan after examining the packages it downloaded and
prompts the user a second time.

A reboot is always recommended, unless you know exactly what was updated
and can manually restart all affected services (or you know that none of
the services that you run are affected).  That was always the case.

> https://wiki.freebsd.org/PkgBase

This is severely out of date and (like most of the wiki) was always more
of an internal roadmap than any sort of user documentation.

DES
-- 
Dag-Erling Smørgrav - des@FreeBSD.org


home | help

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