Welcome to Oracle Communities
Register and Participate in Oracle's online communities. Learn from thousands of experts, get answers to your questions and share knowledge with peers.
These are the steps to install the Oracle Bare Metal Cloud Services Command Line Interface (CLI) on Oracle Linux 6 with the help of Oracle Linux yum server. The steps were performed on an Oracle Linux 6.9 Vagrant Box
By installing the yum-utils package first, you can use yum-config-manager to enable an additional repo from the Oracle Linux yum server without editing configuration files.
$ sudo yum install yum-utils
$ sudo yum-config-manager --config /etc/yum.repos.d/public-yum-ol6.repo --enable public_ol6_software_collections
$ sudo yum install openssl-devel libffi-devel scl-utils python27 gcc
Oracle Linux 6.9 comes with Python 2.6.6 and the bmcs CLI requires Python 2.7.5 at a minimum. Use Python 2.7 from the Software Collection Library, installed earlier.
$ scl enable python27 -- bash
Use virtualenv to create an isolated Python 2.7 environment.
$ python -m virtualenv bmcs
$ . bmcs/bin/activate
With the virtual environment activated, use the following command to install oraclebmc-cli with pip.
(bmcs) $ python -m pip install oraclebmc-cli