Install OCI CLI on Oracle Linux 8

To enjoy the administration of you Oracle Cloud Infrastructure OCI with Command Line Interface CLI, we have listed below the steps how to install OCI CLI on Oracle Linux 8 with the latest version of Python 3.8:

  • Oracle Linux 8 u 2
  • Python 3.8
  • PIP 3.8
  • OCI CLI 2.10.3

Step 1: Install Oracle Linux 8 if not installed

Check my video on my youtube channel, describes the steps of Oracle Linux installation using VirtualBox.

Check the Linux details

# hostnamectl 
Static hostname:
Icon name: computer-vm
Chassis: vm
Virtualization: oracle
Operating System: ]8;; Linux Server 8.2]8;;
CPE OS Name: cpe:/o:oracle:linux:8:2:server
Kernel: Linux 5.4.17-2011.1.2.el8uek.x86_64
Architecture: x86-64

Step 2: Install Python

# yum install python38
# yum install python38-pip

Step 3: Check the pip command

# ll /usr/bin/pip3.8
-rwxr-xr-x. 1 root root 509 Apr 29 18:06 /usr/bin/pip3.8
# ll /usr/bin/pip-3.8
lrwxrwxrwx. 1 root root 8 Apr 29 18:06 /usr/bin/pip-3.8 -> ./pip3.8

Note: the command pip-3.8 is a symbolic link to pip3.8

Step 4: Install the Oracle Cloud Infrastructure Command Line Interface OCI-CLI:

# pip3.8 search oci
oci (2.14.2) - Oracle Cloud Infrastructure Python SDK
oci-cli (2.10.3) - Oracle Cloud Infrastructure CLI
opencontainers (0.0.1) - Python module for oci specifications
pylibcontainer (0.0.6) - An OCI runtime specification implementation library
quick-vcn (0.0.2) - Set up an OCI VCN and components quickly
matrixctl (0.6.0) - Controls a synapse oci-container instance via ansible
toil-py (1.3.1) - toil - Hard working python framework with eyes and boots on the ground for your cloud. Built in workers include OCI, AWS,

# pip3.8 install oci-cli
WARNING: Running pip install with root privileges is generally not a good idea. Try pip3.8 install --user instead.
Collecting oci-cli
Downloading (8.2MB)
|████████████████████████████████| 8.2MB 442kB/s
Collecting PyYAML==5.1.2 (from oci-cli)
Downloading (265kB)
|████████████████████████████████| 266kB 336kB/s
Collecting configparser==4.0.2 (from oci-cli)
Collecting oci==2.14.2 (from oci-cli)
Downloading (4.3MB)
|████████████████████████████████| 4.3MB 564kB/s
Collecting arrow==0.14.7 (from oci-cli)
Collecting python-dateutil<3.0.0,>=2.5.3 (from oci-cli)
Downloading (227kB)
|████████████████████████████████| 235kB 533kB/s
Collecting six==1.14.0 (from oci-cli)
Collecting pyOpenSSL==18.0.0 (from oci-cli)
Downloading (53kB)
|████████████████████████████████| 61kB 893kB/s
Collecting retrying==1.3.3 (from oci-cli)
Collecting jmespath==0.9.4 (from oci-cli)
Collecting pytz>=2016.10 (from oci-cli)
Downloading (510kB)
|████████████████████████████████| 512kB 70kB/s
Collecting click==6.7 (from oci-cli)
Downloading (71kB)
|████████████████████████████████| 71kB 344kB/s
Collecting idna<2.7,>=2.5 (from oci-cli)
Downloading (56kB)
|████████████████████████████████| 61kB 442kB/s
Collecting cryptography==2.8 (from oci-cli)
Downloading (2.3MB)
|████████████████████████████████| 2.3MB 497kB/s
Collecting terminaltables==3.1.0 (from oci-cli)
Collecting certifi (from oci-cli)
Downloading (157kB)
|████████████████████████████████| 163kB 96kB/s
Collecting cffi!=1.11.3,>=1.8 (from cryptography==2.8->oci-cli)
Downloading (409kB)
|████████████████████████████████| 409kB 257kB/s
Collecting pycparser (from cffi!=1.11.3,>=1.8->cryptography==2.8->oci-cli)
Downloading (112kB)
|████████████████████████████████| 112kB 273kB/s
Installing collected packages: PyYAML, configparser, six, pycparser, cffi, cryptography, pyOpenSSL, python-dateutil, pytz, certifi, oci, arrow, retrying, jmespath, click, idna, terminaltables, oci-cli
Running install for PyYAML … done
Running install for retrying … done
Running install for terminaltables … done
Successfully installed PyYAML-5.1.2 arrow-0.14.7 certifi-2020.4.5.1 cffi-1.14.0 click-6.7 configparser-4.0.2 cryptography-2.8 idna-2.6 jmespath-0.9.4 oci-2.14.2 oci-cli-2.10.3 pyOpenSSL-18.0.0 pycparser-2.20 python-dateutil-2.8.1 pytz-2020.1 retrying-1.3.3 six-1.14.0 terminaltables-3.1.0

Step 5: Enjoy the OCI CLI command on Oracle Linux 8

Manage you Oracle Cloud Infrastructure from Command Line.

# oci --version

Enjoy !

Bookmark the permalink.
Loading Facebook Comments ...

Leave a Reply