Ask Your Question
0

Can i install Java 8 on CentOS with the puppet java module?

asked 2015-10-24 12:26:01 -0500

shlomipm gravatar image

can I install Java 8 on CentOS with the puppet java module?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-10-26 03:53:25 -0500

Cristian Falcas gravatar image

Which java 8 do you want to install?

For opensource one:

class {'java':
  package => 'java-1.8.0-openjdk'
}

For oracle version you need to add the correct rpm to a local repo first, after that:

class {'java':
  package => 'jdk1.8.0_31',
  version  => '1.8.0_31-fcs'
}

In the above example the '1.8.031' from the package name is not the same as the package version. The name of the package is 'jdk1.8.031'. You can skip the version parameter, as that each rpm has only one version.

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

1 follower

Stats

Asked: 2015-10-24 12:26:01 -0500

Seen: 462 times

Last updated: Oct 26 '15