Previous page

Next page

Locate page in Contents

Print this page

vzpkg update

The vzpkg update command is used to update the following components of a Container:

  • OS EZ template
  • application EZ templates
  • YUM software groups
  • individual software packages

Syntax

vzpkg update [ options ] < CT_ID | CT_name > [ object [...]]

Options

Name

Description

-C, --cache

Makes the vzpkg update command look for the package updates in the local vzpkg cache only.

You can omit this parameter if the elapsed time from the last vzpkg cache update does not exceed the value of the METADATA_EXPIRE parameter specified in the /etc/vztt/vztt.conf file.

-r, --remote

If the elapsed time from the last vzpkg cache update does not exceed the value of the METADATA_EXPIRE parameter specified in the /etc/vztt/vztt.conf file, you should use this option to make vzpkg update look for the package updates in the remote repositories set for handling the corresponding EZ templates.

-p, --package

Updates the packages installed in the Container by using the vzpkg install command.

-g, --groups

Updates the YUM software group in the Container.

The -g option works only for Containers running RPM-based Linux distributions.

-f, --force

Forces the EZ template/package update procedure.

-n, --check-only

Simulates the same operations as vzpkg update completes without specifying this option (downloads the updated packages to the server, handles their interdependencies, etc.); however, the packages themselves are not updated.

-d, --debug <num>

Sets the debugging level to one of the specified values (from 0 to 10). 10 is the highest debug level and 0 sets the debug level to its minimal value.

-q, --quiet

Disables logging to the screen and to the log file.

Without any options specified, vzpkg update updates all EZ templates (including the OS EZ template) in the specified Container. However, you can make the command update a particular EZ template by specifying its name as object . You can also use the -p or -g option to update YUM software groups or individual software packages in the Container.