lspkg – tool to output names of packages inside working directory of any build system.

Synopsis

lspkg [-f |-s |-n |-p]   [-d |-D |-i |-r]   PROFID LIST [any options]
lspkg --help  |--version

Description

lspkg reads packages list, given in argument LIST, and outputs corresponding packages to stdout. It can be names of the same packages in other form (binary archives), or names of dependencies for given package set, or both.
By default it prints plain package names from lists without modifications, like lsrdd(1) does.

lspkg reads configuration data from rdd(1) configs, so configuration needs to be assigned in argument PROFID. Configuration data keeps the location of lists and default list name.

Syntaxis of arguments and possible key=value options are the same, as for commands of main any(1).

lspkg loads shell environment of other packages to read their dependencies. So KEYWORDS and use-flags affect the output.

Options

Print mode

-f
Print names of binary archives, which would come after the build with current configuration.

-s
Print short names without version.

-n
Print names of package, as it declares in build file. There would be difference with -p mode, if package had changed its P, PN, PV inside build file.

-p
Print plain names from text lists. The default mode.

Dependencies

-d
Print direct build dependencies of given package set, which are not deployed in working directory and are not available during build process. The mode is used to detect minimal set of dependencies, needed for resolving.

-i
Print direct build dependencies of given package set, disregarding whether they are deployed or not.

-D
Print entire recursive tree of build dependencies for given package set.

-r
Print reverse dependencies for given package set: the packages which depend on given set. This is used to determine the impact of given packages on others.

Other

--
Stop processing options.
--version
Print version and exit with 0 code.
--help
Print short help description and exit with 0 code.

See also

any(1), any-howto(7), lsrdd(1)