- Newest
- Most votes
- Most comments
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:
-
First, check for updates by running: sudo yum check-update java-17-amazon-corretto
-
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
Relevant content
asked 2 years ago
asked 2 years ago
- AWS OFFICIALUpdated a month ago
