maintainer-feedback requested: [Bug 296272] ports-mgmt/pkg: does not autoremove automatic, non-vital, leaf packages

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 25 Jun 2026 10:47:44 UTC
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-pkg (Nobody)
<pkg@FreeBSD.org> for maintainer-feedback:
Bug 296272: ports-mgmt/pkg: does not autoremove automatic, non-vital, leaf
packages
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=296272



--- Description ---
Previously, sysutils/fwupd required efivar, but does not as of now, yet pkg
wouldn't clean this:

$ pkg info -x pkg
pkg-2.7.5
$ pkg query '%a %V' efivar
1 0
$ pkg info -r efivar
efivar-39_2:
$ sudo pkg autoremove
Password:
Checking integrity... done (0 conflicting)
Nothing to do.
$

I've had exact same issue after switching LLVM 19=>21, pkg didn't offer to
remove leaf llvm19 after this.