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

Syntax

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

Options

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 behavior 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 server 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 server 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 not removed from the server.

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