Install/Uninstall Additional Packages

To install an additional template or package into completely created virtual server use vps-pkg-inst.pl script.
Run # ./vps-pkg-inst.pl --help to get help on the script options:

vps-pkg-inst.pl

# Install template or single package into Virtual Private Server(s)

Usage:

vps-pkg-inst.pl --vps=<vps_name>|--all --package=<package_name>|--template=<template> [--help]

--vps # <vps_name> - VPS server name to install package/template

--all # install package/template into all registered and complately created VPS servers

--package # <package_name> - RPM package file to be installed full path and name

--template # <template> - template to be installed name.

# rpm_<template>.cfg templete configuration file must be located in corresponding operating system VPS configuration directory

# All RPM packages included in rpm_<template>.cfg file must be located in corresponding operating system distributive packages directory

--help # Print this help information.

Example:

vps-pkg-inst.pl --vps=vps.test --template=web-server

# Install web-server template packages into VPS server named vps.test 
vps-pkg-inst.pl --all --template=system-tools 
# Install system-tools template packages into all registered on the host VPS servers 
vps-pkg-inst.pl --vps=vps.test --package=/pub/RedHat/RHES3/vim-enhanced-6.2.98-1.i386.rpm 
# Install vim-enhanced-6.2.98-1 package into VPS server named vps.test

During template installation the script tries to start default (corresponding to installing template/package) services. Any other service should be started manually from inside of the VPS. No services configuration is performed during the template/package installation. Please read more about virtual server template creation and management in the Parallels H-Sphere VPS Templates.

To unistall any template or package installed inside virtual server, use vps-pkg-remove.pl script

Run # ./vps-pkg-remove.pl --help to get help on the script options:

vps-pkg-remove.pl # Uninstall template or single package from Virtual Private Server(s) 
Usage: 
vps-pkg-remove.pl --vps=<vps_name>|--all --package=<package_name>|--template=<template> [--help] 
--vps # <vps_name> - VPS server name to uninstall package/template 
--all # uninstall package/template from all registered and completely created VPS servers 
--package # <package_name> - RPM package to be uninstalled name 
--template # <template> - template to be uninstalled name.  
           # rpm_<template>.cfg template configuration file must be located in corresponding operating system VPS configuration directory 
--help     # Print this help information. 
Example: 
vps-pkg-remove.pl --vps=vps.test --template=web-server 
      # Uninstall web-server template packages from VPS server named vps.test 
vps-pkg-remove.pl --all --template=system-tools 
# Uninstall system-tools template packages from all registered on the host VPS servers 
vps-pkg-remove.pl --vps=vps.test --package=vim-enhanced-6.2.98-1 
# Uninstall vim-enhanced-6.2.98-1 package from VPS server named vps.test


Be carefull when packages are removed. We do not provide any back-ups to enable services (corresponding to a template/package removal) configuration restore. If any of the packages (single or included into the removed template) required by any other template installed , the package will be not removed.