How to Install and Uninstall java-1.7.0-openjdk.x86_64 Package on Amazon Linux 2

Last updated: December 11,2024

1. Install "java-1.7.0-openjdk.x86_64" package

This guide covers the steps necessary to install java-1.7.0-openjdk.x86_64 on Amazon Linux 2

$ sudo yum makecache $ sudo yum install java-1.7.0-openjdk.x86_64

2. Uninstall "java-1.7.0-openjdk.x86_64" package

This guide covers the steps necessary to uninstall java-1.7.0-openjdk.x86_64 on Amazon Linux 2:

$ sudo yum remove java-1.7.0-openjdk.x86_64 $ sudo yum autoremove

3. Information about the java-1.7.0-openjdk.x86_64 package on Amazon Linux 2

Loaded plugins: ovl, priorities
Available Packages
Name : java-1.7.0-openjdk
Arch : x86_64
Epoch : 1
Version : 1.7.0.261
Release : 2.6.22.2.amzn2.0.2
Size : 255 k
Repo : amzn2-core/2/x86_64
Summary : OpenJDK Runtime Environment
URL : http://openjdk.java.net/
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
: MPLv1.1 and MPLv2.0 and Public Domain and W3C and zlib
Description : The OpenJDK runtime environment.