Manual install RPM

I’d like to install opendistroforelasticsearch version 0.9.0, which is elasticsearch version 6.7.1, elasticsearch-oss I looked at my previous installation and it gave the following plugins:

[root@] sudo bin/elasticsearch-plugin list





[root@] sudo bin/kibana-plugin list



I want to install is using RPM packages but I kept getting some errors as some dependencies cannot be installed whenever I run this command: sudo yum install opendistroforelasticsearch-0.9.0-1

error: %pre(elasticsearch-oss-0:6.7.1-1.noarch) scriptlet failed, exit status 1
Error in PREIN scriptlet in rpm package elasticsearch-oss-6.7.1-1.noarch
  Installing : opendistro-alerting-                                                                                                                                                                                       2/6 
Error unpacking rpm package opendistro-alerting-
error: elasticsearch-oss-0:6.7.1-1.noarch: install failed
error: unpacking of archive failed on file /usr/share/elasticsearch/plugins/opendistro_alerting: cpio: mkdir
  Installing : opendistro-performance-analyzer-                                                                                                                                                                           3/6 
Error unpacking rpm package opendistro-performance-analyzer-
error: opendistro-alerting-0: install failed
error: unpacking of archive failed on file /usr/share/elasticsearch/bin/performance-analyzer-agent-cli;5d2d1343: cpio: open
  Installing : opendistro-sql-                                                                                                                                                                                            4/6 
Error unpacking rpm package opendistro-sql-
error: opendistro-performance-analyzer-0: install failed
error: unpacking of archive failed on file /usr/share/elasticsearch/plugins/opendistro_sql: cpio: mkdir
  Installing : opendistro-security-                                                                                                                                                                                       5/6 
error: opendistro-sql-0: install failed
OpenDistro for Elasticsearch Security Demo Installer
 ** Warning: Do not use on production or public reachable systems **
Basedir: /usr/share/elasticsearch
Unable to determine Elasticsearch config directory. Quit.
warning: %post(opendistro-security-0: scriptlet failed, exit status 255
Non-fatal POSTIN scriptlet failure in rpm package opendistro-security-
  Installing : opendistroforelasticsearch-0.9.0-1.noarch                                                                                                                                                                                  6/6 
  Verifying  : opendistroforelasticsearch-0.9.0-1.noarch                                                                                                                                                                                  1/6 
  Verifying  : opendistro-security-                                                                                                                                                                                       2/6 
  Verifying  : opendistro-alerting-                                                                                                                                                                                       3/6 
  Verifying  : elasticsearch-oss-6.7.1-1.noarch                                                                                                                                                                                           4/6 
  Verifying  : opendistro-performance-analyzer-                                                                                                                                                                           5/6 
  Verifying  : opendistro-sql-                                                                                                                                                                                            6/6 

  opendistroforelasticsearch.noarch 0:0.9.0-1                                                                                                                                                                                                 

Dependency Installed:
  opendistro-security.noarch 0:                                                                                                                                                                                                      

  elasticsearch-oss.noarch 0:6.7.1-1                    opendistro-alerting.noarch 0:                    opendistro-performance-analyzer.noarch 0:                    opendistro-sql.noarch 0:                   


Would really appreciate any help. Thank you