EC2 OpenJdk rpm update


I have an EC2 instance that has currently java-11-openjdk- installed. How do I update it to java-11-openjdk- without removing it?

asked 4 months ago58 views
1 Answer


You can update your Java version via the Command Line Interface (CLI) using the command “sudo yum update” (without quotations). There is no need to worry about removing previously installed updates on your instance.

This documentation gives more generalized instructions on installing packages within a Linux instance via the CLI:

Additionally, this 3rd-party documentation can provide a more detailed look into your specific question: (please note this is not an official AWS document).

answered 4 months ago
reviewed 3 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions