From nobody Thu Aug 7 05:44:05 2025 X-Original-To: freebsd-pkgbase@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 4byGLc6DvJz63nh3; Thu, 07 Aug 2025 05:44:08 +0000 (UTC) (envelope-from dtxdf@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4byGLc5Tmzz3CLp; Thu, 07 Aug 2025 05:44:08 +0000 (UTC) (envelope-from dtxdf@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1754545448; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=we6J0CcRj7SJemfG6GuW0c7HPUu/9LhbU0zJWzy9KIk=; b=fG12w1C8ON7KOyZzyDjQHM79ScsQSx6cC9xWLJqCBDsr4NU7Zf+gtwjdpC9GEz4ZrSzI0Y f/52Zt+JqIQUFts8JvSPS3nb4snJhjsNSyALKhl6k0tSrV/+GwmZMuE6er0Pg1k/ktwMGE 077ZV0ev2ddysdTc+RV4ZZnSfvcYDtL9cq2voY4Jc5g8Rceod2k3R2+gtlHtFrR9GLFj2H 6tobqcftSCWaNFw/483L1AhvYs+nhO8BcGv1C61G2eHVrmJBi5eTyhq9BW5taCjgF62iSx 7WK0+eBuB/K0okefEGCeF1mRhU4K89nAuYtY6TGeHXElb1xflPvt6TvQ2zor2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1754545448; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=we6J0CcRj7SJemfG6GuW0c7HPUu/9LhbU0zJWzy9KIk=; b=S0RCWQX7drBsbfjsnnLbDMbYthN4NFg+LGVpJUIm5AzEGsY/v489pGPTl3qz/9JdLMndAM /PAOhMPMTtIC2fugQq1DDUB4W5zO8TfwSQO/sQbAo2amorQVPC2j9PK8D2ag1RZoRMZVZr N7CFwW0tv9B0jdAcmsIo9w5S3wXDY04Z4KSkQEjYBr0FLHkzkVn6bz3KOAxym7In8RQXuY gqXUR4cuogpaJXKvzz6FqdNYIcUfF+wjyZaq4jbqiBi43z0SHJ+Zkyz8X5izDKdp3rwbXI E5n8Fk0KX+K2DNVJmbqAhMY4piBuRN5BdMoi5ynCczIvTbEyJL/r5O/z9zghrA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1754545448; a=rsa-sha256; cv=none; b=QUnmLv0r9dzQE8oswT20GoU7cHje9h1ANoEinpd/6DBOqYTSkmSaQjzSFok/72SB3tIK1z vpdz0ehGKQZIMOa1f22eMtsXA4kfpexww+XvgZknYEAPq/IJ9MDmZwdNOzuMPIg9/7rGCS GsQU8LDgbni9TjItJ1V1eEnLACi7JXUCgYD8IT9wAxxUaH7ZvwcG28OA28b7eXitjCOXVJ cn+2PBjvVromxXbS/XvzuBMGHBwLvYQ6n8feEaNMqPq6wXm1g2gO+ilwG3HLoi5ngvNyEz pqtv5hNExIRgXL7TQmjKUVHbcEjAXdQD7CaA1WVGr3t5emDo7lqyA2M7oYoE7g== Received: from [192.168.0.103] (unknown [201.208.30.180]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: dtxdf) by smtp.freebsd.org (Postfix) with ESMTPSA id 4byGLc12NMzqTH; Thu, 07 Aug 2025 05:44:07 +0000 (UTC) (envelope-from dtxdf@freebsd.org) Content-Type: multipart/alternative; boundary="------------8XRymVIcfNm0H6e34XCBQz2w" Message-ID: <7d8a6b67-700c-47ac-8484-d6a45961a9c4@freebsd.org> Date: Thu, 7 Aug 2025 01:44:05 -0400 List-Id: Packaging the FreeBSD base system List-Archive: https://lists.freebsd.org/archives/freebsd-pkgbase List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-pkgbase@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Beta Subject: Re: Deletion of just installed port-packages: a question [Trying to avoid being part of other somewhat-related discussions] To: Mark Millard , FreeBSD-pkgbase@freebsd.org, FreeBSD-pkg@freebsd.org References: Content-Language: en-US From: =?UTF-8?Q?Jes=C3=BAs_Daniel_Colmenares_Oviedo?= In-Reply-To: This is a multi-part message in MIME format. --------------8XRymVIcfNm0H6e34XCBQz2w Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Perhaps something like this (with a few additions): ``` pkg query %n | grep -vEe '^(FreeBSD-.+)' | xargs pkg remove -n && pkg autoremove -n && pkg clean -n ``` On 8/6/25 23:42, Mark Millard wrote: > Is there a known alternative to the command: > > chroot/FBSDFSSDroot-mnt/ pkg-static delete -a > > that would only delete port-packages, even if the > chroot's world was based on a pkgbase world > installation? > > If yes, what would the command be like? --------------8XRymVIcfNm0H6e34XCBQz2w Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Perhaps something like this (with a few additions):


```
pkg query %n | grep -vEe '^(FreeBSD-.+)' | xargs pkg remove -n && pkg autoremove -n && pkg clean -n

```

On 8/6/25 23:42, Mark Millard wrote:
Is there a known alternative to the command:

chroot /FBSDFSSDroot-mnt/ pkg-static delete -a

that would only delete port-packages, even if the
chroot's world was based on a pkgbase world
installation?

If yes, what would the command be like?
--------------8XRymVIcfNm0H6e34XCBQz2w--