How to Install and Uninstall java-11-amazon-corretto.x86_64 Package on Amazon Linux 2

Last updated: May 18,2024

1. Install "java-11-amazon-corretto.x86_64" package

This is a short guide on how to install java-11-amazon-corretto.x86_64 on Amazon Linux 2

$ sudo yum makecache $ sudo yum install java-11-amazon-corretto.x86_64

2. Uninstall "java-11-amazon-corretto.x86_64" package

Please follow the guidelines below to uninstall java-11-amazon-corretto.x86_64 on Amazon Linux 2:

$ sudo yum remove java-11-amazon-corretto.x86_64 $ sudo yum autoremove

3. Information about the java-11-amazon-corretto.x86_64 package on Amazon Linux 2

Loaded plugins: ovl, priorities
Available Packages
Name : java-11-amazon-corretto
Arch : x86_64
Epoch : 1
Version : 11.0.14+10
Release : 1.amzn2
Size : 189 k
Repo : amzn2-core/2/x86_64
Summary : Amazon Corretto development environment
URL : https://github.com/corretto/corretto-11
License : ASL 1.1 and ASL 2.0 and BSD and BSD with advertising and GPL+ and
: GPLv2 and GPLv2 with exceptions and IJG and LGPLv2+ and MIT and
: MPLv2.0 and Public Domain and W3C and zlib and ISC and FTL and
: RSA.
Description : Amazon Corretto's packaging of the runtime core elements of the
: OpenJDK 11 code.