From nobody Thu Oct 02 14:25:05 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 4ccvG336FFz69D8v for ; Thu, 02 Oct 2025 14:25:15 +0000 (UTC) (envelope-from ross@bisd.ro) Received: from ada.kiz.li (ada.kiz.li [38.45.72.165]) (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) by mx1.freebsd.org (Postfix) with ESMTPS id 4ccvG14xMJz3Dxf for ; Thu, 02 Oct 2025 14:25:13 +0000 (UTC) (envelope-from ross@bisd.ro) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=pass (policy=reject) header.from=bisd.ro; spf=pass (mx1.freebsd.org: domain of ross@bisd.ro designates 38.45.72.165 as permitted sender) smtp.mailfrom=ross@bisd.ro Received: from [192.168.1.225] (syn-072-182-130-191.res.spectrum.com [72.182.130.191]) by ada.kiz.li (OpenSMTPD) with ESMTPSA id 40a331a6 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Thu, 2 Oct 2025 10:25:07 -0400 (EDT) Message-ID: <5ff7bf8d-6385-4193-8a0b-b7661b2ceea4@bisd.ro> Date: Thu, 2 Oct 2025 09:25:05 -0500 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: Questions about pkgbase To: freebsd-current@freebsd.org References: <20251002.180121.980053125503545103.yasu@FreeBSD.org> <20251002.184250.407649009874750263.yasu@utahime.org> Content-Language: en-US From: "S. Ross Gohlke" In-Reply-To: <20251002.184250.407649009874750263.yasu@utahime.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Bar: - X-Spamd-Result: default: False [-1.43 / 15.00]; NEURAL_HAM_SHORT(-0.77)[-0.766]; NEURAL_HAM_LONG(-0.70)[-0.697]; NEURAL_SPAM_MEDIUM(0.63)[0.634]; DMARC_POLICY_ALLOW(-0.50)[bisd.ro,reject]; ONCE_RECEIVED(0.20)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_ONE(0.00)[1]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:174, ipnet:38.45.72.0/24, country:US]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; ARC_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4ccvG14xMJz3Dxf On 10/2/25 04:42, Yasuhiro Kimura wrote: > Hi Lexi, > > Thanks for quick reply! > > From: Lexi Winter > Subject: Re: Questions about pkgbase > Date: Thu, 2 Oct 2025 10:17:30 +0100 > >>> Then is there any way to (re|un)install all installed non-pkgbase >>> packages? >> this should be possible using 'pkg delete -r FreeBSD-ports', but >> currently this option does not exist. there is a feature request >> to add it: https://github.com/freebsd/pkg/issues/2494. > It solves the issue of `pkg-static delete -afy` but doesn't one of > `pkg-static upgrade -fy`. IMHO option of pkg(8) should be added that > limits target of action to either pkgbase pacakges or non-pkbbase > ones. pkg-query(8) evaluation format does not have variable for repository, but you can lock/unlock FreeBSD-base packages before/after: # sh -c 'pkg query "%n %R" | grep " FreeBSD-base" | while read A B; do pkg lock -y $A; done' # pkg-static upgrade -fy ... # sh -c 'pkg query "%n %R" | grep " FreeBSD-base" | while read A B; do pkg unlock -y $A; done' > BTW, it seems package name of all pkgbase packages starts with > 'FreeBSD-'. On the other hand AFAIK ports framework don't prohibit to > add port whose package name starts with 'FreeBSD-'. It seems > confliction of package name may happen between base system and ports. > > --- > Yasuhiro Kimura > Regards, Ross