From nobody Sun Nov 23 17:12:08 2025 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dDwVf3MTKz6HKp7 for ; Sun, 23 Nov 2025 17:12:10 +0000 (UTC) (envelope-from des@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dDwVf2qmPz3Crw; Sun, 23 Nov 2025 17:12:10 +0000 (UTC) (envelope-from des@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1763917930; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BqloJ5nFij50xG/TLfgHXhJrTMOiagUiEji4EyQKC+A=; b=Sg4sL3oRe34XiqKINI9G66MmINX4K0XhQsLOpiIDsuALILF6n3vyn/gy1A7gm270PG/acD RSpx0ihzoP4DFY1t2tPc4N02jdgHKq93x7OUQjOJez37KbbquE1rL46vo/jK2eMEIdtbpM ywEs+CSapvpQ7gDvaKWUmEfUM652UA0tSZP2ZBzgtgc5Q49sHDf2+qOooy4rU6mc0QzRDi zITWJ+icGuT2+QWml4KmnUZOSQBLn9nQ3mdwbk1LH0n1wnUKF3UCN5jH+kvSmSZHUah2cd foAm1WIZ4accqq/NsCgnqIjHDNXOnldBbOC4aPxpHB9VWuP2sPdk/y9vYo4onA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1763917930; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BqloJ5nFij50xG/TLfgHXhJrTMOiagUiEji4EyQKC+A=; b=NvccqiR8IurnAUiZieEOsA/hPOIiF9l6QQQsOU69fC49o6j982oXe99RLkprn4kwCIYw7h Fb0HS9CfDN2lBZJ/uT/xKbWYwMJpolTlHI66029/vAieiTBsPUCi1ympyAEkshL03n8swk /d7lq2y+g6S3VSZrbqjJ7L1iIXubbF35XsqQJ9sGOjW5kSGds8uoykIFrd4TWukPvKwu7R 3DgEMcjVjgfPKFhFem4h/EmmtmI15quyXp9Wngj5DDvJXa9t1KT9OG9udt0Fn56mdryDDR BB2BcQmbmVY9K90Cxha02tmbqT+gawGOTGE0CzsW5mimxzMxr4n+QGSpQIl28w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1763917930; a=rsa-sha256; cv=none; b=BB9SoFIRqULwfdChbg0JGge2ups0okFoez59LQWgMw/hcsLH63gOgKXENKNd3RATgsFEmS gJaTTZtyIdmAxLifJZIq1iAoUx+c+1Ucm13csL4EXA8yU1n/3OVe0CJpGiuLtO1FT1DSYX kWY4CW5H87RBRlaDx9XuBbvW0lQa/ENVG4DPZkx3AgnSQbmymrUyvvfzN8yb70eS01FW6j fgYKsqbd2qzSngNAH0i2UzMc4VAx/5a1vHuirJgmIVxX7Aft/ddZFs31EZyrtL5OOMTof9 lk+Rb9YhKaH323NXmInHCKAxB6qyfV+ESbgLYVeXxFriU4985cVW7LOU7ZxBAA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from ltc.des.dev (2a01cb0585090500922e16fffef1acef.ipv6.abo.wanadoo.fr [IPv6:2a01:cb05:8509:500:922e:16ff:fef1:acef]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: des) by smtp.freebsd.org (Postfix) with ESMTPSA id 4dDwVf1lnYz8gt; Sun, 23 Nov 2025 17:12:10 +0000 (UTC) (envelope-from des@freebsd.org) Received: by ltc.des.dev (Postfix, from userid 1001) id DC8118DE91; Sun, 23 Nov 2025 18:12:08 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: polyduekes@proton.me Cc: Lexi Winter , freebsd-current@freebsd.org, bapt@freebsd.org Subject: Re: changing from pkgbase to regularbase In-Reply-To: (polyduekes@proton.me's message of "Sun, 23 Nov 2025 08:07:35 +0000") References: <71e4b46c-8d69-451d-92ca-79316ffc4b63@app.fastmail.com> <20251122180931.52c1141475f5faec4fad633c@dec.sakura.ne.jp> User-Agent: Gnus/5.13 (Gnus v5.13) Date: Sun, 23 Nov 2025 18:12:08 +0100 Message-ID: <861pload1z.fsf@ltc.des.dev> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable polyduekes@proton.me writes: > what is the correct way to depkgbasify? There is no =E2=80=9Ccorrect=E2=80=9D way. Here's what I would suggest: 1. Make sure your system is up-to-date and consistent and you have a matching source tree installed: # pkg upgrade -y # pkg install -y FreeBSD-set-src # pkg autoremove -y 2. Make a list of non-pkgbase non-automatic packages: # pkg query -e '%a =3D=3D 0 && %o !~ base/*' %n >packages 3. Delete your installed package database: # rm /var/db/pkg/local.sqlite 4. Reinstall non-pkgbase packages: # pkg install -fy $(cat packages) This will of course also reinstall all dependencies, but we are deliberately only specifying non-automatic packages so the end result is the same as what we started out with. If we had made a list of _all_ installed packages, we would end up with everything now being marked non-automatic, and `pkg autoremove` would no longer work properly. 5. Populate /var/db/etcupdate so it will work when you later upgrade from source: # etcupdate extract 6. Optional but recommended =E2=80=94 disable the pkgbase repository: # rm /usr/local/etc/pkg/repos/FreeBSD.conf (this file will have been created by the installer and should contain a single line that enables the FreeBSD-base repository; without it, the repository remains defined in /etc/pkg/FreeBSD.conf but disabled) You can also remove cached information about the repository, which you will no longer need: # rm -rf /var/db/pkg/repos/FreeBSD-base At this point you can replace /usr/src with a git clone and upgrade as usual (`make -C /usr/src -j1.5 world kernel && etcupdate -B`). There is a shortcut for steps 2-4. I think it is both sufficient and safe, but I don't know pkg's internals well enough to say for sure; perhaps bapt@ can weight in. First you need to install the sqlite3 cli: # pkg install -Ay sqlite3 You can then use it to remove information about base packages from the package database, leaving the rest intact so you don't have to reinstall them: # sqlite3 /var/db/pkg/local.sqlite \ "delete from packages where origin like 'base/%';" If you choose this route you can also drop the autoremove in step 1, which I only put in to shorten steps 2 and 4. You still have to perform step 5 (and optionally 6). DES -- Dag-Erling Sm=C3=B8rgrav - des@FreeBSD.org