Re: How to do the equivalent of "pkg clean" for the likes of: /usr/local/poudriere/jails/official-aarch64/var/cache/pkg/FreeBSD-* [poudriere vs. pkg issue?]

From: Bryan Drewery <bdrewery_at_FreeBSD.org>
Date: Sat, 09 May 2026 02:49:41 UTC
On 5/8/26 5:35 PM, Mark Millard wrote:
> I'm not sure if this would be considered a poudriere usage s. a pkg
> usage issue for where to submit.
>
> My poudriere jail updates are not cleaning out prior:
>
> /usr/local/poudriere/jails/*/var/cache/pkg/FreeBSD-*
>
> files after updates. For example my "official-aarch64" poudriere jail
> now shows over 1600 files:
>
> # ls -dC1
> /usr/local/poudriere/jails/official-aarch64/var/cache/pkg/FreeBSD-* | wc -l
>      1682
>
> and spans a history of 6 snapshots:
>
> # ls -dC1t \
> /usr/local/poudriere/jails/official-aarch64/var/cache/pkg/FreeBSD-*~* \
> | sed -e 's@^.*\(/FreeBSD-.*\)-15\.snap.*~.*$@\1@' \
> | sort \
> | uniq -c \
> | sort -rn \
> | head
>     6 /FreeBSD-utilities-lib32
>     6 /FreeBSD-utilities
>     6 /FreeBSD-toolchain
>     6 /FreeBSD-src-sys
>     6 /FreeBSD-runtime-lib32
>     6 /FreeBSD-runtime
>     6 /FreeBSD-kernel-man
>     6 /FreeBSD-geom
>     6 /FreeBSD-clibs-dev
>     6 /FreeBSD-bsnmp
>

I miss most email reports. I logged this over at 
https://github.com/freebsd/poudriere/issues/1343.

This issue is purely Poudriere. I'll get a `pkg clean` into there.


Thank you!

Bryan