Ask Your Question
-1

java installation rpm file in different location

asked 2014-06-10 10:49:25 -0500

supriya gravatar image

Hi,

I am trying to install java using rpm. I downloaded rpm file from oracle. And I placed that here in my /etc/puppetlabs/puppet/environments/development/modules/javarpm/files/jdk-7u25-linux-x64.rpm And I am trying to install these rpm in /u01/app/oracle/product/jdk1.7.025. This directory is already created.

My code is class javarpm { package { "jdk-7u25-linux-x64": provider => rpm, installoptions =>['-ivh --prefix=/u01/app/oracle/product/jdk1.7.025'], source => '/etc/puppetlabs/puppet/environments/development/modules/javarpm/files/jdk-7u25-linux-x64.rpm', ensure => installed, } }

I am having this issue: Error: Execution of '/bin/rpm -i "-ivh --prefix=/u01/app/oracle/product/jdk1.7.025" /etc/puppetlabs/puppet/environments/development/modules/javarpm/files/jdk-7u25-linux-x64.rpm' returned 1: error: open of -ivh\ --prefix=/u01/app/oracle/product/jdk1.7.0_25 failed: No such file or directory

Error: /Stage[main]/Javarpm/Package[jdk-7u25-linux-x64]/ensure: change from absent to present failed: Execution of '/bin/rpm -i "-ivh --prefix=/u01/app/oracle/product/jdk1.7.025" /etc/puppetlabs/puppet/environments/development/modules/javarpm/files/jdk-7u25-linux-x64.rpm' returned 1: error: open of -ivh\ --prefix=/u01/app/oracle/product/jdk1.7.025 failed: No such file or directory

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-06-18 07:19:39 -0500

3h4x gravatar image

updated 2014-06-18 07:20:02 -0500

I reckon you're trying to install rpm that doesn't exist on your system. Read the docs

source

Where to find the actual package. This must be a local file (or on a network file system) or a URL that your specific packaging type understands; Puppet will not retrieve files for you, although you can manage packages as file resources. Puppet Type Reference

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2014-06-10 10:49:25 -0500

Seen: 562 times

Last updated: Jun 18 '14