Previous page

Next page

Locate page in Contents

Print this page

vzpkg update cache

This command is used to update tarballs (caches) of the OS EZ templates installed on the server. It has the following syntax:

vzpkg update cache [ options ] [< OS_template > [ ... ]]

You can pass the following options to this command:

Name

Description

-C, --cache

Makes the vzpkg update cache command check for the packages updates in the local vzpkg cache only and use them for the cache creation.

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. In this case vzpkg update cache will also check the local vzpkg cache only.

-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 cache check for the packages updates in the remote repositories set for handling the given EZ OS template.

vzpkg update cache checks the cache directory in the template area (by default, the template area is located in the /vz/template directory on the server) and updates all existing tarballs in this directory. However, you can explicitly indicate what OS EZ template tarball is to be updated by specifying its name as < OS_template >. Upon the vzpkg update cache execution, the old tarball is renamed by receiving the -old suffix (e.g. redhat-el5-x86.tar.gz-old ).

If the vzpkg update cache command does not find a tarball for one or more OS EZ templates installed on the server, it creates the corresponding tar archive(s) and puts them to the /vz/template/cache directory.