Quick installation of OCI client

Below command will quickly install all perl/python libraries along wit CLI

sudo yum install gcc libffi-devel python-devel openssl-devel
sudo easy_install pip
curl -L “https://raw.githubusercontent.com/oracle/oci-cli/master/scripts/install/install.sh” | bash

 [root@instance-20180730-1239 opc]# bash -c “$(curl -L https://raw.githubusercontent.com/oracle/oci-cli/master/scripts/install/install.sh)”


  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  6225  100  6225    0     0  23547      0 –:–:– –:–:– –:–:– 23669
Downloading Oracle Cloud Infrastructure CLI install script from https://raw.githubusercontent.com/oracle/oci-cli/5657b833bfcf16298d43fb6f0204cd66173c5ac0/scripts/install/install.py to /tmp/oci_cli_install_tmp_x0yu.
######################################################################## 100.0%
Python3 not found on system PATH
Running install script.
— Verifying Python version.
— Python version 2.7.5 okay.
— Verifying native dependencies.
— Unable to verify native dependencies. dist=oracle linux server, version=7.5. Continuing…


===> In what directory would you like to place the install? (leave blank to use ‘/root/lib/oracle-cli’):
— Creating directory ‘/root/lib/oracle-cli’.
— We will install at ‘/root/lib/oracle-cli’.


===> In what directory would you like to place the ‘oci’ executable? (leave blank to use ‘/root/bin’):
— Creating directory ‘/root/bin’.
— The executable will be in ‘/root/bin’.
— Downloading virtualenv package from https://github.com/pypa/virtualenv/archive/15.0.0.tar.gz.
— Downloaded virtualenv package to /tmp/tmpFTRwfR/15.0.0.tar.gz.
— Checksum of /tmp/tmpFTRwfR/15.0.0.tar.gz OK.
— Extracting ‘/tmp/tmpFTRwfR/15.0.0.tar.gz’ to ‘/tmp/tmpFTRwfR’.
— Executing: [‘/bin/python’, ‘virtualenv.py’, ‘–python’, ‘/bin/python’, ‘/root/lib/oracle-cli’]
Already using interpreter /bin/python
New python executable in /root/lib/oracle-cli/bin/python
Installing setuptools, pip, wheel…done.
— Executing: [‘/root/lib/oracle-cli/bin/pip’, ‘install’, ‘–cache-dir’, ‘/tmp/tmpFTRwfR’, ‘oci_cli’, ‘–upgrade’]
Collecting oci_cli
  Downloading https://files.pythonhosted.org/packages/22/4c/bd92ccf00ba643ad726e72241e357e6c3fde36a8aa30d0fbcfd472104d3c/oci_cli-2.4.29-py2.py3-none-any.whl (1.9MB)
    100% |????????????????????????????????| 1.9MB 14.0MB/s
Collecting idna<2.7,>=2.5 (from oci_cli)
  Downloading https://files.pythonhosted.org/packages/27/cc/6dd9a3869f15c2edfab863b992838277279ce92663d334df9ecf5106f5c6/idna-2.6-py2.py3-none-any.whl (56kB)
    100% |????????????????????????????????| 61kB 20.6MB/s
Collecting arrow==0.10.0 (from oci_cli)
  Downloading https://files.pythonhosted.org/packages/54/db/76459c4dd3561bbe682619a5c576ff30c42e37c2e01900ed30a501957150/arrow-0.10.0.tar.gz (86kB)
    100% |????????????????????????????????| 92kB 24.6MB/s
Collecting jmespath==0.9.3 (from oci_cli)
  Downloading https://files.pythonhosted.org/packages/b7/31/05c8d001f7f87f0f07289a5fc0fc3832e9a57f2dbd4d3b0fee70e0d51365/jmespath-0.9.3-py2.py3-none-any.whl
Collecting configparser==3.5.0 (from oci_cli)
  Downloading https://files.pythonhosted.org/packages/7c/69/c2ce7e91c89dc073eb1aa74c0621c3eefbffe8216b3f9af9d3885265c01c/configparser-3.5.0.tar.gz
Collecting oci==2.0.0 (from oci_cli)
  Downloading https://files.pythonhosted.org/packages/56/d5/cff7ad0e88bac9054f2b40600734cbc029498dafeca11c3421196cb7c105/oci-2.0.0-py2.py3-none-any.whl (1.3MB)
    100% |????????????????????????????????| 1.3MB 16.2MB/s
Collecting httpsig-cffi==15.0.0 (from oci_cli)
  Downloading https://files.pythonhosted.org/packages/93/f5/c9a213c0f906654c933f1192148d8aded2022678ad6bce8803d3300501c6/httpsig_cffi-15.0.0-py2.py3-none-any.whl
Collecting cryptography==2.1.3 (from oci_cli)
  Downloading https://files.pythonhosted.org/packages/ff/ac/1e88d66b4bfba41565cb8b3a28d9abcf8e228e5e31cd283a353b6a8bfe08/cryptography-2.1.3-cp27-cp27mu-manylinux1_x86_64.whl (2.2MB)
    100% |????????????????????????????????| 2.2MB 7.6MB/s
Collecting terminaltables==3.1.0 (from oci_cli)
  Downloading https://files.pythonhosted.org/packages/9b/c4/4a21174f32f8a7e1104798c445dacdc1d4df86f2f26722767034e4de4bff/terminaltables-3.1.0.tar.gz
Collecting click==6.7 (from oci_cli)
  Downloading https://files.pythonhosted.org/packages/34/c1/8806f99713ddb993c5366c362b2f908f18269f8d792aff1abfd700775a77/click-6.7-py2.py3-none-any.whl (71kB)
    100% |????????????????????????????????| 71kB 20.2MB/s
Collecting pyOpenSSL<=17.4.0 (from oci_cli)
  Downloading https://files.pythonhosted.org/packages/b7/45/0b83f445994da6ff803d7c3a5fa016afda3c965d0c48dafa8e0264a554e7/pyOpenSSL-17.4.0-py2.py3-none-any.whl (52kB)
    100% |????????????????????????????????| 61kB 20.6MB/s
Collecting retrying==1.3.3 (from oci_cli)
  Downloading https://files.pythonhosted.org/packages/44/ef/beae4b4ef80902f22e3af073397f079c96969c69b2c7d52a57ea9ae61c9d/retrying-1.3.3.tar.gz
Collecting pytz==2016.10 (from oci_cli)
  Downloading https://files.pythonhosted.org/packages/f5/fa/4a9aefc206aa49a4b5e0a72f013df1f471b4714cdbe6d78f0134feeeecdb/pytz-2016.10-py2.py3-none-any.whl (483kB)
    100% |????????????????????????????????| 491kB 20.1MB/s
Collecting certifi (from oci_cli)
  Downloading https://files.pythonhosted.org/packages/7c/e6/92ad559b7192d846975fc916b65f667c7b8c3a32bea7372340bfe9a15fa5/certifi-2018.4.16-py2.py3-none-any.whl (150kB)
    100% |????????????????????????????????| 153kB 26.9MB/s
Collecting python-dateutil==2.7.3 (from oci_cli)
  Downloading https://files.pythonhosted.org/packages/cf/f5/af2b09c957ace60dcfac112b669c45c8c97e32f94aa8b56da4c6d1682825/python_dateutil-2.7.3-py2.py3-none-any.whl (211kB)
    100% |????????????????????????????????| 215kB 26.1MB/s
Collecting six==1.11.0 (from oci_cli)
  Downloading https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
Collecting cffi>=1.7; platform_python_implementation != “PyPy” (from cryptography==2.1.3->oci_cli)
  Downloading https://files.pythonhosted.org/packages/14/dd/3e7a1e1280e7d767bd3fa15791759c91ec19058ebe31217fe66f3e9a8c49/cffi-1.11.5-cp27-cp27mu-manylinux1_x86_64.whl (407kB)
    100% |????????????????????????????????| 409kB 22.4MB/s
Collecting enum34; python_version < “3” (from cryptography==2.1.3->oci_cli)
  Downloading https://files.pythonhosted.org/packages/c5/db/e56e6b4bbac7c4a06de1c50de6fe1ef3810018ae11732a50f15f62c7d050/enum34-1.1.6-py2-none-any.whl
Collecting asn1crypto>=0.21.0 (from cryptography==2.1.3->oci_cli)
  Downloading https://files.pythonhosted.org/packages/ea/cd/35485615f45f30a510576f1a56d1e0a7ad7bd8ab5ed7cdc600ef7cd06222/asn1crypto-0.24.0-py2.py3-none-any.whl (101kB)
    100% |????????????????????????????????| 102kB 24.9MB/s
Collecting ipaddress; python_version < “3” (from cryptography==2.1.3->oci_cli)
  Downloading https://files.pythonhosted.org/packages/fc/d0/7fc3a811e011d4b388be48a0e381db8d990042df54aa4ef4599a31d39853/ipaddress-1.0.22-py2.py3-none-any.whl
Collecting pycparser (from cffi>=1.7; platform_python_implementation != “PyPy”->cryptography==2.1.3->oci_cli)
  Downloading https://files.pythonhosted.org/packages/8c/2d/aad7f16146f4197a11f8e91fb81df177adcc2073d36a17b1491fd09df6ed/pycparser-2.18.tar.gz (245kB)
    100% |????????????????????????????????| 256kB 26.4MB/s
Building wheels for collected packages: arrow, configparser, terminaltables, retrying, pycparser
  Running setup.py bdist_wheel for arrow … done
  Stored in directory: /tmp/tmpFTRwfR/wheels/ce/4f/95/64541c7466fd88ffe72fda5164f8323c91d695c9a77072c574
  Running setup.py bdist_wheel for configparser … done
  Stored in directory: /tmp/tmpFTRwfR/wheels/a3/61/79/424ef897a2f3b14684a7de5d89e8600b460b89663e6ce9d17c
  Running setup.py bdist_wheel for terminaltables … done
  Stored in directory: /tmp/tmpFTRwfR/wheels/30/6b/50/6c75775b681fb36cdfac7f19799888ef9d8813aff9e379663e
  Running setup.py bdist_wheel for retrying … done
  Stored in directory: /tmp/tmpFTRwfR/wheels/d7/a9/33/acc7b709e2a35caa7d4cae442f6fe6fbf2c43f80823d46460c
  Running setup.py bdist_wheel for pycparser … done
  Stored in directory: /tmp/tmpFTRwfR/wheels/c0/a1/27/5ba234bd77ea5a290cbf6d675259ec52293193467a12ef1f46
Successfully built arrow configparser terminaltables retrying pycparser
Installing collected packages: idna, six, python-dateutil, arrow, jmespath, configparser, pycparser, cffi, enum34, asn1crypto, ipaddress, cryptography, pyOpenSSL, pytz, certifi, oci, httpsig-cffi, terminaltables, click, retrying, oci-cli
Successfully installed arrow-0.10.0 asn1crypto-0.24.0 certifi-2018.4.16 cffi-1.11.5 click-6.7 configparser-3.5.0 cryptography-2.1.3 enum34-1.1.6 httpsig-cffi-15.0.0 idna-2.6 ipaddress-1.0.22 jmespath-0.9.3 oci-2.0.0 oci-cli-2.4.29 pyOpenSSL-17.4.0 pycparser-2.18 python-dateutil-2.7.3 pytz-2016.10 retrying-1.3.3 six-1.11.0 terminaltables-3.1.0


===> Modify profile to update your $PATH and enable shell/tab completion now? (Y/n): Y


===> Enter a path to an rc file to update (leave blank to use ‘/root/.bashrc’):
— Backed up ‘/root/.bashrc’ to ‘/root/.bashrc.backup’
— Tab completion set up complete.
— If tab completion is not activated, verify that ‘/root/.bashrc’ is sourced by your shell.

— ** Run `exec -l $SHELL` to restart your shell. **

— Installation successful.

  • March 4, 2019 | 18 views
  • Comments