vzpkg update
The
vzpkg update
command is used to update either the OS EZ template a Container is based on or any of the application EZ templates inside the Container. Besides, you can use this command to update the software packages installed inside your Container by means of the
vzpkg install
command. It has the following syntax:
vzpkg update [
options
] <
CT_ID
>|<
CT_NAME
>
[<
object
> [...]]
The following options can be used with
vzpkg update
:
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 inside the Container by using the
vzpkg install
command.
|
-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 option specified,
vzpkg update
updates all EZ templates (including the OS EZ template) inside the Container with the ID of <
CT_ID
>
or the name of
<
CT_NAME
>
. However, you can make the command update a particular EZ template by specifying its name as <
object
>. You can also use the
-p
option to make the command update the packages installed inside the Container by using
vzpkg install
instead of EZ templates.
|