Previous page

Next page

Locate page in Contents

Print this page

vzpkginfo

This utility provides information on any template installed on the Hardware Node. To gather this information, it parses the corresponding template configuration file located in the /vz/template/<template_name>/conf directory. To get the necessary information about a template, you can specify either the template name or the path to its configuration file. A number of options let you choose what information is to be displayed. The syntax of the utility is as follows:

vzpgkinfo [OPTION]... <path_to_configuration_file>

vzpgkinfo [OPTION]... -b <package_set_name> [<package_set_name> ... ]

The available options are described in the following table:

-h, --help

Display the help information and exit.

-b, --pkgset

Use the name of the template installed to search the configuration file instead of specifying the configuration file itself. Several template names can be used.

-c, --checkonly

Check only the correctness of specified template(s) installation. For each package set either "ok" or "fail" is displayed.

-q, --quiet

Be more quiet in the output, in some cases only the return code is printed.

-t, --type

Display only the type of the template: base or update.

-n, --version

Display only the version of the template.

-v, --verlist

Get a list of all available versions of the template. The versions are displayed one per line.

-k, --cached

Skip non-cacheable versions in the output (for use with the -v option only).

-g, --getsect name

Get the contents of a particular section. Empty lines are cut out. The utility prints an error message to stderr and exits with a non-zero exit code if no section name is found in the configuration file.

-p, --pkglist

Display a list of packages included in the given template version.

Note that you cannot simultaneously specify two or more of the following options: -p -g -v -c -t n. They are mutually exclusive in the current version of Virtuozzo Containers.

Please send us your feedback on this help page