Updating poudriere jail

Adam Weinberger adamw at adamw.org
Thu Dec 13 20:12:20 UTC 2018


On Thu, Dec 13, 2018 at 1:01 PM Carmel NY <carmel_ny at outlook.com> wrote:
>
> On Thu, 13 Dec 2018 12:49:07 -0700, Adam Weinberger stated:
>
> >On Thu, Dec 13, 2018 at 12:43 PM Carmel NY <carmel_ny at outlook.com> wrote:
> >>
> >> I am using FreeBSD 11.2-RELEASE-p6. If I use freebsd-update to install the
> >> new version 12, what do I have to do to update the poudriere jail? Plus,
> >> if I do update, will I have to rebuild all of my installed applications?
> >
> >It's not really possible to cleanly upgrade a poudriere jail to a new
> >major. You'll need to delete the jail and recreate it.
> >  poudriere jail -d -j $jailname
> >  poudriere jail -c -j $jailname -v 12.0-RELEASE
> >
> >If the jail name stays the same, it will retain all the options,
> >make.conf, and poudriere.conf. If the jail name has changed, you'll
> >most likely want to move those things over:
> >  cd /usr/local/etc/poudriere.d
> >  mv oldjailname-{make.conf,poudriere.conf,options,etc....} newjailname-...
> >
> >You will, unfortunately, need to rebuild everything. After rebuilding,
> >be sure to run "pkg upgrade -f" BEFORE the final "freebsd-update
> >install"!
> >
> ># Adam
>
> I build my packages. Do I really have to do the "pkg upgrade -f" procedure?

Yeah, it is necessary. The packages that are on your system are linked
against the 11.2 libraries. Once you do the final "freebsd-update
install", those 11.2 libraries will disappear. As a result, every
package you have installed will break. Rebuild everything, then "pkg
upgrade -f" to reinstall all the packages using the newly built
versions. That way, nothing will break after the final freebsd-update
install.

# Adam


-- 
Adam Weinberger
adamw at adamw.org
https://www.adamw.org


More information about the freebsd-ports mailing list