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


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


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.


Print mode

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

Print full names of binary archives with absolute path, which actually exist in current package directory. any_pkg=path option can change the default in-engine package location.

Print short names without version.

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.

Print plain names from text lists. The default mode.


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.

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

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

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.


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

See also

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