Yum

From OpenVZ Virtuozzo Containers Wiki
Revision as of 07:15, 12 October 2009 by Kir (talk | contribs) (Reverted edits by 216.45.58.187 (Talk) to last version by Kir)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Yum is nice package manager for RPM-based systems. If you are already using yum, you can set up OpenVZ yum repository and install/update OpenVZ software using yum.

Setup[edit]

Download openvz.repo file and put it to /etc/yum.repos.d/ directory on your server. You are all set.

Usage[edit]

Upgrade[edit]

If you have OpenVZ already installed, just run

# yum update

periodically to keep your system up to date.

New installation[edit]

Run

# yum install ovzkernel vzctl

to install OpenVZ on your system.

Yellowpin.svg Note: barely installing those packages is not enough to have OpenVZ up and running on your system. For full installation instructions, see Quick installation.

Additional kernels[edit]

File openvz.repo by default enables only one repository — the one which contains latest stable kernel and tools. If you want to run some other OpenVZ kernel (e.g. development one, or a kernel made from some vendor's one), please edit /etc/yum.repos.d/openvz.repo manually, changing the line enable=0 to enable=1 for the kernel you want.

Troubleshooting[edit]

Fedora Core 6: complain about newer kernel[edit]

On Fedora 6 system you can get the error while installing OpenVZ kernel using yum, like this one:

Transaction Check Error:   package kernel-2.6.18-1.2869.fc6 (which is newer than kernel-2.6.18-ovz028test010.1) is already installed
 package kernel-2.6.19-1.2895.fc6 (which is newer than kernel-2.6.18-ovz028test010.1) is already installed

To work around this, disable kernel packages in fedora-core and fedora-updates repositories, by adding this line:

exclude=kernel kernel-smp kernel-enterprise

to the

  • [core] section of /etc/yum.repos.d/fedora-core.repo file
  • [updates] section of /etc/yum.repos.d/fedora-updates.repo file