Recently ran into a Virtuozzo container running CentOS 5.9 that was missing yum.
Did some research and first found this page from the CentOS team:
It’s highly critical of distributions that leave out yum but it does give manual steps for installing. Unfortunately these steps looked a bit messy.
Since we controlled the Virtuozzo there was another option … we could install the yum package from the Virtuozzo host system with this command:
/usr/sbin/vzpkg install -p 99 yum
Replace 99 with your target container ID. This is much neater then trying to install yum manually!