Date: Tue, 2 Dec 2025 09:09:08 -0800 From: Bakul Shah <bakul@iitbombay.org> To: Emmanuel Vadot <manu@bidouilliste.com> Cc: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@FreeBSD.org>, polyduekes@proton.me, Lexi Winter <ivy@freebsd.org>, FreeBSD Current <freebsd-current@freebsd.org>, bapt@freebsd.org Subject: Re: changing from pkgbase to regularbase Message-ID: <9D033CDA-B2C5-4E32-9121-64E8EE1C255A@iitbombay.org> In-Reply-To: <20251202162711.16aec122152219f614c30beb@bidouilliste.com> References: <aR3Rc_5llfvlEjIo@int21h> <aSEGPTtrfV29u9R9@amaryllis.le-fay.org> <71e4b46c-8d69-451d-92ca-79316ffc4b63@app.fastmail.com> <aSETbVSLxcDa5ssB@amaryllis.le-fay.org> <20251122180931.52c1141475f5faec4fad633c@dec.sakura.ne.jp> <d6ed185f-ed13-4a2c-a875-1b687a0f7b8b@plan-b.pwste.edu.pl> <aSG0JXUhAG2fBal-@amaryllis.le-fay.org> <npwDORtr2Yu3U030JdrqqhiwOtcJFCOC80Lrub8U8faFbaBTHvQdSrSDy5fWgQDSTZs30Un0y9UTyIn3i_Mz-dA0bUGdUlklr157U4mw8xM=@proton.me> <861pload1z.fsf@ltc.des.dev> <20251202162711.16aec122152219f614c30beb@bidouilliste.com>
index | next in thread | previous in thread | raw e-mail
On Dec 2, 2025, at 7:27 AM, Emmanuel Vadot <manu@bidouilliste.com> wrote: > > And with https://github.com/freebsd/pkg/pull/2563 the shortcut for > step 2-4 will just be 'pkg unregister FreeBSD-\*' This is much better! I tried a simpler (& riskier) depkgbasify compared to what DES suggests! # zfs snapshot zroot/ROOT/default@depkgbasify # pkg info | awk '{print $1;}'|grep FreeBSD-|xargs pkg list|\ tar -zcf /tmp/fbsd-pkgs.tgz --fflags --xattrs -I /dev/stdin # pkg info | awk '{print $1;}'|grep FreeBSD-|xargs pkg delete -y -f # cd / # /.zfs/snaphot/depkgbasify/rescue/tar -xpvf /tmp/fbsd-pkgs.tgz The key idea is to 1. to make sure you have a copy of the statically linked tar (zfs snapshot not really needed) 2. make a tar of everything installed by FreeBSD-* packages 3. forcibly blowing away all the FreeBSD-* installed files (so no /bin, /sbin....) 4. untar from root restoring all permissions, flags etc. Probably a good idea to delete FreeBSD-src, FreeBSD-src-sys packages before saving a snapshot since you will want a fresh copy if compiling locally.help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9D033CDA-B2C5-4E32-9121-64E8EE1C255A>
