From nobody Thu Nov 20 14:56:46 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 4dC1dt2D1Lz6HVkK for ; Thu, 20 Nov 2025 14:56:50 +0000 (UTC) (envelope-from matthew@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 4dC1dt1Ysrz3Jpn for ; Thu, 20 Nov 2025 14:56:50 +0000 (UTC) (envelope-from matthew@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1763650610; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nzy67BJQjWFCFyw7rEBknpqudRUsxY9NThyj2voDipw=; b=jvVnbXhgOPobJFCFrnQiocZOceIKx7I/+ND69umGslk0iRfFyCmF1ieBBZwkNKJiYeEp2t Qnc8yNqahF010JRU61b0plgxdvrnowmAqSRsW/7hmBR7LgL836vkKMfjmM9vzdMZ/skRqk JGqyH2TSzN1VFFDXnf3OsaT1PftTpR6rBVF0Bf0VWpC/cmlVLSkBnUeE+jSU2PNbiuPRwQ Yn2VGjDVcETlQoUb6B+GAdbL+Jb1B1X8u3Zwo6ArYA6ZBBIIMJ7YEbXcjG4YWc51lHAbL5 tg+zmYCRWQ6uWIq0rGMh7i2N49+/qjEQLy8EOK0Qh+ZsDKCDI5b66lC4ktMFHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1763650610; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nzy67BJQjWFCFyw7rEBknpqudRUsxY9NThyj2voDipw=; b=lhhWFADqmAdTydupNqFwM2qD0Snl2NWo1fsKaEb2x+J4L+igpdtCxobUsDVJzX0qD/HUif 3rdstCN6aY+OMzaHwVrZidHbyIqRXvfdEA5Src3mqyd/lqQuKm7M3r40ZFouYX8OH9SXIj bhbtrrY3VR0B4fB45mwja38ylQLRQZsOD6llOSY9HciVGMycBYgAzIkCfMI+lLNcoTIElp Q36vc4hnNL9dy9tdfmhD1Il/5nKhwVTcwwGMmw4axCp/0vSsmPUBIZqVjZkq9Bz5MozT3g yqLxxljVxxjYbOZG+ZBaxmGKj9QDeJtCipLYDtYLCiwgTfodaZxnCR5sClsMaA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1763650610; a=rsa-sha256; cv=none; b=huLNQp0KP1lrMHSAvpV2nugLoJ6/XBSzO9HntvWHswT6LM+2Ol3bHz0lKujHkrLcZmKUxG 5Eo+GeLD+L4XeqN+sOXpwnrzre0xToQlP38n/Ccv/g4GL0SiOFgy0bZutDQudCJXSGnMl4 qS1G2hyXfT+lN+vua1eJ/BwJrdq0IDFCIz+tduzLPFHCR5PWXIn/Ez0L+rNvr0xYTuCnpG 1HlYN1iiL8PcwX7ah8UGmjmCrgQ4ZUwXq7DZ9MfOn8P1ClXtOUSgmhgXmE2IFrcqRGrr70 bJhf11K7MXuBLyOQKRQ7l5zkbhoFeyTy99gEo8R8p3sVPtUVNSdPlfP0bzmhYw== ARC-Authentication-Results: i=1; smtp.infracaninophile.co.uk; dmarc=fail (p=none dis=none) header.from=FreeBSD.org Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.117.100]) (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: matthew/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4dC1dt0FFGzyc0 for ; Thu, 20 Nov 2025 14:56:50 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from [IPV6:2001:8b0:151:1:1815:9f0d:ffcd:f5b8] (unknown [IPv6:2001:8b0:151:1:1815:9f0d:ffcd:f5b8]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id 083AC469 for ; Thu, 20 Nov 2025 14:56:47 +0000 (GMT) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=fail (p=none dis=none) header.from=FreeBSD.org Message-ID: <3a98225a-0f49-4010-9e6b-8f893a069ba1@FreeBSD.org> Date: Thu, 20 Nov 2025 14:56:46 +0000 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 User-Agent: Mozilla Thunderbird Subject: Re: changing from pkgbase to regularbase To: freebsd-current@freebsd.org References: Content-Language: en-GB From: Matthew Seaman In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 20/11/2025 12:49, void wrote: > What I'm ultimately looking for, is a method of transforming > a pkgbase system into a not-pkgbase one, that upgrades > in the traditional source-based way. This is how I would do it: 0) Make sure all packages are up-to-date and any no-longer required automatic packages have been removed. # pkg upgrade # pkg autoremove -y 1) Make a list of all the packages you have installed that aren't FreeBSD base packages. You can exclude anything automatically installed as a dependency of anything else: % pkg query -e '%a = 0' '%n' | grep -v ^FreeBSD > packages.list 2) Move aside the pkg database in /var/db/pkg # mv /var/db/pkg /var/db/pkg.old 3) Re-install pkg(8) using pkg(7) # pkg bootstrap -f 4) Re-install all of the non-base packages from step (1) # xargs pkg install < packages.list Untried, so may need refinement, but that's the gist of it. You do end up having to overwrite all previously installed non-base software with an identical copy of itself. The only other alternative would be directly modifying the pkg sqlite database, but that's not something I can easily describe how to do. However, this does seems like a retrograde step to me. It is possible to build your own packages from the source tree, and then update your system from those, which gives you pretty much the benefits of both worlds: # cd /usr/src # git pull # make buildworld buildkernel packages # cat < /usr/local/etc/pkg/repos/FreeBSD-base.conf FreeBSD-base: { url: file:///usr/obj/usr/src/repo enabled: yes priotiry: 1 } EOF # pkg upgrade Again, untested and you'll probably have to flesh this sequence of commands out a bit and work on the details, but that should give an idea of how it would work. Cheers, Matthew