Skip to content

Correto 17 upgrade

0

I have Correto 17 installed on Amazon Linux 2 via "sudo yum install java-17-amazon-corretto" Command. Now new version was released (https://github.com/corretto/corretto-17/blob/release-17.0.13.11.1/CHANGELOG.md) But it is not available in Amazon Linux repositories. I want to avoid manual installation, so how can I check whet it will became available for upgrade? Or how can I upgrade?

asked 2 years ago2.4K views

1 Answer
2

To upgrade Amazon Corretto 17 on Amazon Linux 2, you typically would use the yum package manager. However, if the new version is not yet available in the Amazon Linux repositories, you'll need to wait for it to be added.

To check for updates and upgrade when they become available, you can use the following steps:

  1. First, check for updates by running: sudo yum check-update java-17-amazon-corretto

  2. If an update is available, you can upgrade by running: sudo yum update java-17-amazon-corretto

If you want to avoid manual installation and stick with the repository-based approach, the best course of action is to periodically check for updates using these commands. Amazon typically updates their repositories with new Corretto versions, but there might be a delay between the release announcement and its availability in the repositories.

It's worth noting that you installed the headful variant of Corretto 17. If you want to ensure you have the full JDK, including development tools, you might want to consider using the following package instead:

sudo yum install java-17-amazon-corretto-devel

This package includes the complete JDK, which might be more suitable for development purposes.

Remember, the timing of updates in the Amazon Linux repositories can vary, so patience may be required if you prefer to avoid manual installation and wait for the repository update.

Sources
Amazon Corretto 17 Installation Instructions for Amazon Linux 2 and Amazon Linux 2023 - Amazon Corretto 17
Amazon Corretto 17 Installation Instructions for Debian-Based, RPM-Based and Alpine Linux Distributions - Amazon Corretto 17

answered 2 years ago

EXPERT

reviewed 2 years 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.