OpenJDK Install - Specific version

44 views
Skip to first unread message

sub...@gmail.com

unread,
Feb 18, 2021, 11:15:50 AM2/18/21
to Ansible Project
Is there a way to install a specic version of JDK8 on CentOS using ansible? we are looking to pin versions of JDK to 

java-1.8.0-openjdk-devel.x86_64 1:1.8.0.282.b08-1.el7_9

Thank you.

Dick Visser

unread,
Feb 18, 2021, 12:05:30 PM2/18/21
to ansible...@googlegroups.com
https://docs.ansible.com/ansible/latest/collections/ansible/builtin/dnf_module.html#parameter-name
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/1c360054-3d90-459f-92a8-348576f9b57bn%40googlegroups.com.



--
Dick Visser
Trust & Identity Service Operations Manager
GÉANT

sub...@gmail.com

unread,
Feb 19, 2021, 1:25:27 PM2/19/21
to Ansible Project
we are using yum module to install it. How do we pass version information for JDK8?
java-1.8.0-openjdk-1.8.0.282.b08-4.fc34.x86_64.rpm ( this is the specific package we are trying to install)

Wawrzek Niewodniczanski

unread,
Feb 20, 2021, 7:41:44 AM2/20/21
to ansible...@googlegroups.com
On Thu, 18 Feb 2021 at 16:15, sub...@gmail.com <sub...@gmail.com> wrote:
>
> Is there a way to install a specic version of JDK8 on CentOS using ansible? we are looking to pin versions of JDK to
>
> java-1.8.0-openjdk-devel.x86_64 1:1.8.0.282.b08-1.el7_9
>
Can you selected a version of that particular package?

I worked with Azul JDK (free on Azure) and to achieve version lock I
used yum versionlock:
https://www.man7.org/linux/man-pages/man1/yum-versionlock.1.html

Thanks to versionlock you can still run "yum update".

Wawrzek

PS. I'll try to find an example of passing version to the yum module,
but it should be in docs.
--
Dr Wawrzyniec Niewodniczański or Wawrzek for short
PhD in Quantum Chemistry & MSc in Molecular Engineering
WWW: http://wawrzek.name E-MAIL: jo...@wawrzek.name
Linux User #177124
Reply all
Reply to author
Forward
0 new messages