wpkg --variable
Options | Comments |
---|---|
--admindir | Define the administration directory, where the database of the installed packages resides. |
--debug | Define a set of flags of things to print out for debug purposes. |
--instdir | Define the installation directory, where the data files are installed on the target. |
--quiet | Not used. |
--root | Define the installation root path. |
--verbose | Not used. |
The --variable command prints the value of the named variable found in the .pc file of the specified packages. The command line expects the name of the variable first, then the list of packages to read the .pc files from.
The following reads the variable named prefix from the package named gimp:
wpkg --variable prefix gimp
Note that the list of variables includes the dynamically defined variables: internally such as the ${instdir} variable, and by the user with the --define-variable option. See the page about the pkg-config support for more information.
To get a list of existing variables use the --print-variables command.