Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Jun 2026 16:50:41 +0200
From:      Matias Pizarro <matias@pizarro.net>
To:        freebsd-pkgbase@freebsd.org, freebsd-pkgbase@FreeBSD.org
Subject:   Re: Moving to pkg-based in 15.1 ...
Message-ID:  <439B3749-A366-446E-B54C-3E4098F4CE72@pizarro.net>
In-Reply-To: <86a4sot2l4.fsf@ltc.des.dev>
References:  <db84590d-4284-4a65-83bd-65b517fb783d@mgm51.com> <86a4sot2l4.fsf@ltc.des.dev>

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

[-- Attachment #1 --]
Indeed, it has never been that simple and robust. You can also follow this guide:

https://www.freebsd.org/releases/15.1R/installation/#upgrade-pkg


On 21 June 2026 16:01:11 CEST, "Dag-Erling Smørgrav" <des@FreeBSD.org> wrote:
>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
>

[-- Attachment #2 --]
<html><head></head><body><div dir="auto">Indeed, it has never been that simple and robust. You can also follow this guide:<br><br><a href="https://www.freebsd.org/releases/15.1R/installation/#upgrade-pkg">https://www.freebsd.org/releases/15.1R/installation/#upgrade-pkg</a><br></div><br><br><div class="gmail_quote"><div dir="auto">On 21 June 2026 16:01:11 CEST, "Dag-Erling Smørgrav" &lt;des@FreeBSD.org&gt; wrote:</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="net-thunderbird-android__plain-text-message-pre"><div dir="auto">Mike &lt;the.lists@mgm51.com&gt; writes:<br></div><blockquote class="gmail_quote" style="margin-bottom: 1ex; --net-thunderbird-android__blockquote-default-border-color: #729fcf;"><div dir="auto">Now, as I understand the pkgbase system, it has gotten a bit more<br>complex.<br></div></blockquote><div dir="auto"><br>On the contrary...<br><br></div><blockquote class="gmail_quote" style="margin-bottom: 1ex; --net-thunderbird-android__blockquote-default-border-color: #729fcf;"><div dir="auto">I no longer see that easy ability to update from one patch level to<br>the current patch level within the installed version.<br></div></blockquote><div dir="auto"><br>To upgrade a pkgbase system, simply run:<br><br>    # pkg upgrade<br><br>or, if you want to upgrade _only_ the base system and leave the rest<br>untouched:<br><br>    # pkg upgrade -r FreeBSD-base<br><br>This essentially replaces `freebsd-update fetch` and `freebsd-update<br>install` in your script, including the intervening prompt, and the rest<br>will work as before.  If you want to get fancy, do:<br><br>    # pkg upgrade -r FreeBSD-base -Fy<br><br>to download updated packagtes without installing them, then<br><br>    # pkg upgrade -r FreeBSD-base<br><br>to prompt the user and install the downloaded packages.  This will also<br>avoid a rare situation (very unlikely to occur with pkgbase on a release<br>branch) where pkg computes an upgrade plan, prompts the user, then<br>computes a different plan after examining the packages it downloaded and<br>prompts the user a second time.<br><br>A reboot is always recommended, unless you know exactly what was updated<br>and can manually restart all affected services (or you know that none of<br>the services that you run are affected).  That was always the case.<br><br></div><blockquote class="gmail_quote" style="margin-bottom: 1ex; --net-thunderbird-android__blockquote-default-border-color: #729fcf;"><div dir="auto"><a href="https://wiki.freebsd.org/PkgBase">https://wiki.freebsd.org/PkgBase</a><br></div></blockquote><div dir="auto"><br>This is severely out of date and (like most of the wiki) was always more<br>of an internal roadmap than any sort of user documentation.<br><br>DES<br></div></pre></blockquote></div></body></html>
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?439B3749-A366-446E-B54C-3E4098F4CE72>