Question
How to install or remove a particular package from a container?
Answer
For containers, based on VZFS (default for PVC 4.x), it is better to manage packages via vzpkg
tool in order to save the disk space. It creates the corresponding links of the package to the template area, which is shared among all containers.
vzpkg install <CTID> -p <package_name>
vzpkg remove <CTID> -p <package_name>
For ploop containers (default for Virtuozzo 6.0), it is possible to use the vzpkg
command from the hardware node as well or install packages directly inside the containers with yum
.