DEV Community

Mim Ahmed for AWS Community Builders

Posted on

Install Java 11 on Amazon Linux 2

First SSH Your Linux Machine


Run the yum update command. Optionally, you can add the --security flag to apply only security updates

Command: sudo yum update

yum update

In order to install java 11:

sudo amazon-linux-extras install java-openjdk11

Java Install

Type "Y" for install packages


Package installation

Wait until all packages finished install

Finished Install

Check Java Instillation

Command: java -version

Java Check

Top comments (0)

Timeless DEV post...

Git Concepts I Wish I Knew Years Ago

The most used technology by developers is not Javascript.

It's not Python or HTML.

It hardly even gets mentioned in interviews or listed as a pre-requisite for jobs.

I'm talking about Git and version control of course.

One does not simply learn git