How to make pkg info not show shlibs?

0 views
Skip to first unread message

Mel P

unread,
Mar 2, 2026, 2:21:29 AM (11 days ago) Mar 2
to freebsd-...@freebsd.org
pkg-2.5.1 `pkg info` always shows shared library requirements and
provisions in addition to pkg dependencies. The man page only gives
options to show that information separately (-b and -B). There isn't
any documented option to get the normal output that only lists pkgnames.

The problem is, listing shlibs can cause an extreme increase in output.
For example:

# pkg info -r abseil
abseil-20250127.1_1:
protobuf-c-1.5.1_3
protobuf-29.5,1
protobuf-29.5,1 (libabsl_bad_optional_access.so.2501.0.0)
[...]
# pkg info -r abseil | wc -l
165

How do I make pkg info not show shlibs?

Dag-Erling Smørgrav

unread,
Mar 2, 2026, 4:40:31 AM (11 days ago) Mar 2
to Mel P, freebsd-...@freebsd.org
Mel P <list_f...@bluerosetech.com> writes:
> How do I make pkg info not show shlibs?

pkg query %rn-%rv package

DES
--
Dag-Erling Smørgrav - d...@FreeBSD.org

Mel P

unread,
Mar 2, 2026, 6:44:53 AM (11 days ago) Mar 2
to Dag-Erling Smørgrav, freebsd-...@freebsd.org
On 2026-03-02 1:40, Dag-Erling Smørgrav wrote:
> Mel P <list_f...@bluerosetech.com> writes:
>> How do I make pkg info not show shlibs?
>
> pkg query %rn-%rv package

I'm guessing by this response that shlib listings are forced on and
cannot be disabled?


Reply all
Reply to author
Forward
0 new messages