On Tue, 26 Aug 2025, adr wrote:

Date: Tue, 26 Aug 2025 13:36:08 +0000 (UTC)
From: adr <a...@sdf.org>
To: Diogo <d...@sdf.org>
Cc: netbsd-users@netbsd.org
Subject: Re: Finding all dependencies of a packages (cross-platform)

On Tue, 26 Aug 2025, Diogo wrote:

 Date: Tue, 26 Aug 2025 06:05:36 +0000
 From: Diogo <d...@sdf.org>
 To: netbsd-users@netbsd.org
 Subject: Finding all dependencies of a packages (cross-platform)

 Dear mailing list,

 is there a way to find all dependencies of a package without installing
 it?

If you are using pkgsrc from source, you have targets to show build
and run dependencies, read the pkgsrc guide.

If you are using binary packages, you can use pkg_info with a URL
or pkgin. Read the man pages.

Is there some problem with pkg_info, pkgin or make targets in linux?

Has been a while since I used pkgsrc on linux, sorry if I missed
something.

adr.

I re-read your mail, you can't use pkgin for what you want to do, but
you should be able to do:

pkg_info -n -N 
https://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/x86_64/10.0_2025Q2/All/cmake-3.31.7nb2.tgz

Or use the make show-* targets on the machine you have set to build the
packages.

adr

Reply via email to