Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Aug 2025 01:44:05 -0400
From:      =?UTF-8?Q?Jes=C3=BAs_Daniel_Colmenares_Oviedo?= <dtxdf@freebsd.org>
To:        Mark Millard <marklmi@yahoo.com>, FreeBSD-pkgbase@freebsd.org, FreeBSD-pkg@freebsd.org
Subject:   Re: Deletion of just installed port-packages: a question [Trying to avoid being part of other somewhat-related discussions]
Message-ID:  <7d8a6b67-700c-47ac-8484-d6a45961a9c4@freebsd.org>
In-Reply-To: <FAFC65E2-BD71-4320-81BC-9D698A476BF2@yahoo.com>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
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?
[-- Attachment #2 --]
<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Perhaps something like this (with a few additions):</p>
    <p><br>
    </p>
    <p>```<br>
      <span style="font-family:monospace"><span
          style="color:#000000;background-color:#ffffff;">pkg query %n |
          grep -vEe '^(FreeBSD-.+)' | xargs pkg remove -n &amp;&amp; pkg
          autoremove -n &amp;&amp; pkg clean -n</span><br>
      </span></p>
    <p>```</p>
    <div class="moz-cite-prefix">On 8/6/25 23:42, Mark Millard wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:FAFC65E2-BD71-4320-81BC-9D698A476BF2@yahoo.com">
      <pre class="moz-quote-pre" wrap="">Is there a known alternative to the command:

chroot <i class="moz-txt-slash"><span class="moz-txt-tag">/</span>FBSDFSSDroot-mnt<span
      class="moz-txt-tag">/</span></i> 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?</pre>
    </blockquote>
  </body>
</html>
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7d8a6b67-700c-47ac-8484-d6a45961a9c4>