How To Install openjdk-8-jre on Ubuntu 20.04
Introduction
In this tutorial we learn how to install openjdk-8-jre
on Ubuntu 20.04.
What is openjdk-8-jre
openjdk-8-jre is:
Full Java runtime environment - needed for executing Java GUI and Webstart programs, using Hotspot JIT.
The packages are built using the IcedTea build support and patches from the IcedTea project.
Package: openjdk-8-jre Architecture: amd64 Version: 8u252-b09-1ubuntu1 Multi-Arch: same Priority: optional Section: universe/java Source: openjdk-8 Origin: Ubuntu Maintainer: OpenJDK Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 280 Provides: java2-runtime, java5-runtime, java6-runtime, java7-runtime, java8-runtime Depends: openjdk-8-jre-headless (= 8u252-b09-1ubuntu1), libglib2.0-0 (>= 2.24), libxrandr2, libxinerama1, libgl1-mesa-glx | libgl1, libgtk2.0-0 (>= 2.14), libatk-wrapper-java-jni (>= 0.33.3-9~), libasound2 (>= 1.0.16), libc6 (>= 2.14), libgif7 (>= 5.1), libjpeg8 (>= 8c), libpng16-16 (>= 1.6.2-1), libpulse0 (>= 0.99.1), libx11-6, libxext6 Recommends: fonts-dejavu-extra Suggests: icedtea-8-plugin Replaces: openjdk-8-jre-headless (« 8u20~b20-3) Filename: pool/universe/o/openjdk-8/openjdk-8-jre_8u252-b09-1ubuntu1_amd64.deb Size: 69776 MD5sum: 0a1c0e59a77764adf6de2276a75e0702 SHA1: 5977ec4810a77bd5d8860fde2854683a8602b763 SHA256: 30c3acdf7c53bb4ff6c2c0a9b703e15ffa15a7f0772c0ff2b75a8074595dbf90 Homepage: http://openjdk.java.net/ Description-en: OpenJDK Java runtime, using Hotspot JIT Full Java runtime environment - needed for executing Java GUI and Webstart programs, using Hotspot JIT.
The packages are built using the IcedTea build support and patches from the IcedTea project.
There are three methods to install openjdk-8-jre
on Ubuntu 20.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install openjdk-8-jre Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install openjdk-8-jre
using apt-get
by running the following command:
sudo apt-get -y install openjdk-8-jre
Install openjdk-8-jre Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install openjdk-8-jre
using apt
by running the following command:
sudo apt -y install openjdk-8-jre
Install openjdk-8-jre Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install openjdk-8-jre
using aptitude
by running the following command:
sudo aptitude -y install openjdk-8-jre
How To Uninstall openjdk-8-jre on Ubuntu 20.04
To uninstall only the openjdk-8-jre
package we can use the following command:
sudo apt-get remove openjdk-8-jre
Uninstall openjdk-8-jre And Its Dependencies
To uninstall openjdk-8-jre
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove openjdk-8-jre
Remove openjdk-8-jre Configurations and Data
To remove openjdk-8-jre
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge openjdk-8-jre
Remove openjdk-8-jre configuration, data, and all of its dependencies
We can use the following command to remove openjdk-8-jre
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge openjdk-8-jre
References
Summary
In this tutorial we learn how to install openjdk-8-jre
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.