Previous page

Next page

Locate page in Contents

Print this page

vzpkg clean

This command is used to remove the software packages, their headers, and metadata downloaded to the Hardware Node from the repository during the vzpkg execution (e.g. while caching an OS EZ template or adding an application EZ template to a Container for the first time). It has the following syntax:

vzpkg clean [options] [<OS_template> [...]]

You can use the following options with vzpkg clean:

Name

Description

-k, --clean-packages

Removes the packages, headers, and metadata of the specified EZ OS template from the local vzpkg cache. This is also the default behaviour of vzpkg clean.

-t, --clean-template

Checks the template area for the specified EZ OS template (the template area has the default path of /vz/template) and removes all packages that are currently not used by any Container on the Node and not included in the EZ OS template cache.

-a, --clean-all

Removes both:

  • the packages, headers, and metadata of the specified EZ OS template from the vzpkg local cache

and

  • the packages that are currently not used by any Container on the Node and not included in the EZ OS template cache.

-f, --force

Forces the vzpkg clean execution.

-n, --check-only

Simulates the same operations as vzpkg clean completes without specifying this option; however, the packages and headers are notremoved from the Hardware Node.

-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.

Please send us your feedback on this help page