Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1032666 // BASH Java Installer

Document

#!/bin/bash

wget -O - "https://github.com/AdoptOpenJDK/openjdk16-binaries/releases/download/jdk-16.0.1%2B9/OpenJDK16U-jdk_x64_linux_hotspot_16.0.1_9.tar.gz" | tar -xz -C "$HOME"
mv "$HOME/jdk-16" "$HOME/jdk-16-old"
mv "$HOME/jdk-16.0.1+9" "$HOME/jdk-16"
rm -r "$HOME/jdk-16-old"
echo "$HOME/jdk-16/bin/java"
"$HOME/jdk-16/bin/java" -version

Author comment

You can download & run this with:

  wget -O - "https://botcompany.de/serve/1032666" | tr -d "\r" | bash

download  show line numbers   

Travelled to 2 computer(s): bhatertpkbcr, mqqgnosmbjvj

No comments. add comment

-
Snippet ID: #1032666
Snippet name: BASH Java Installer
Eternal ID of this version: #1032666/10
Text MD5: 95bcd0a830aed6eb824ddd584e8a0e41
Author: stefan
Category: javax / linux
Type: Document
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-09-30 08:06:07
Source code size: 348 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 189 / 75
Version history: 9 change(s)
Referenced in: