wpkg --info | -I

Short Hand

wpkg -I

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 Request for error messages, print nothing otherwise.
--root Define the installation root path.
--verbose Accepted but has no effect at this time.

The --info command (capital i for the short hand: -I) is used to print out the information of a package: its control file and some statistics.

The information displays goes like this:

Version

The Debian package version. This is always 2.0 since we only support that version at this point.

Sizes

The size of the package in bytes, the size of the control.tar.gz file inside the package, and the size of the control.tar.gz file when decompressed.

Files

The name, size and number of lines of each of the file found in the control.tar.gz tarball. The number of lines is shown even for binary files as there is no good way to determine whether a file is text or binary. A file that starts with hash bang (#!) is shown with an asterisk. Later we may add support to find executables (.ELF and COFF formats.)

File Contents

You may specify the name of a file in which case that file is printed in the output. The packager tool does not check whether the files are text or binary. It simply prints them if available in the archive. This feature is often used to check out the md5sum of a file:

wpkg --info my-package_1.0_mswindows-i386.deb md5sums

Note that the files are printed in the order they appear in the control.tar.gz file. dpkg, on the other hand, prints the files in the order specified on the command line.

When this feature is used, the list of Files is not printed out.

Control File

By default the content of the control file is printed to the output. If you specified a filename on the command line then the control file is printed only if one of the filesnames is 'control'.

If no control file was found in the archive, then an error is printed out instead. This happens whether or not you display the control file as it is mandatory.

To print out just one or a few select fields, see the --field command line option.

md5sums File

If no md5sums file was found in the archive, then an error is printed out. This happens whether or not you display the md5sums file as it is mandatory.

Quiet Mode

When using the quiet mode (with --quiet) the function becomes a quick verification process which ensures that your archive includes a control file, an md5sums file, and that the Debian version is 2.0.

This verification is faster than the --verify process since it skips on verifying the md5sum of each file in the data.tar.gz archive.

Installed Packages Mode

The --info command line option can be used with the name of installed packages. However, it is preferable to use the --print-avail to be more compatible with dpkg.