
Managing Templates
45
Working with VPS
If you need to update an already existing VPS with the newer packages available from
distribution repositories or install some packages that are not part of the template, use the
vzyum
command, which is a simple
yum
wrapper. For example, to update the VPS with ID
123, run:
# vzyum 123 update
This will find, download, and install all the available updates.
As you may have noticed, a lot of applications are not installed with an OS template. They are
to be installed separately, using the
vzyum
utility. For example, if you need the MySQL server
inside VPS 123, use the following command:
# vzyum 123 install mysql-server
Here,
vzyum
will call the
yum
package manager and provide it with all the paths to the
repositories suitable for the distribution installed into the VPS.
Yum
will calculate the
dependencies, present you with a list of packages to install/update/remove based on what you
have asked for and, if confirmed, run a transaction to actually perform all the needed steps. For
more information, see the
yum
manual page (
man 8 yum
).
If the package you want to install is already available on Hardware Node, you can use the
vzrpm
utility to install it into a VPS, e.g.:
# vzrpm 123 –ihv mypackage-1.0-2.i386.rpm
This will install the
mypackage
RPM to VPS 123.
And of course you can do all the usual operations right from inside any VPS: build, install,
upgrade, and remove software.