3.4.17. vzpkg localinstall

The vzpkg localinstall command is used to install a software package inside a container from the corresponding file on the server.

Syntax. 

vzpkg localinstall [<options>] <CT_name> <rpm_file_path> [...]

Table 3.41. Options

NameDescription

-C, --cache

When handling the package interdependencies, makes the vzpkg localinstall command look for the needed packages in the local vzpkg cache only. If there is a package not available locally, the command will fail. 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 local 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 localinstall look for the packages in the remote repository.

-n, --check-only

Simulates the same operations as vzpkg localinstall completes without specifying this option (e.g., handles the package interdependencies); however, the package itself is not installed in the specified container.

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

When executed, the command installs the package, the full path to which is specified as <rpm_file_path>, inside the container with the name <CT_name>. You may specify multiple packages to be installed inside the container.

During its execution, vzpkg localinstall automatically handles the interdependencies among the packages to be installed inside a container and ensures that all dependencies are satisfied. If the package dependencies cannot be resolved, the installation process will fail and the corresponding message will be displayed.