-
Notifications
You must be signed in to change notification settings - Fork 0
/
jdk21_prerm.sh
18 lines (16 loc) · 1.05 KB
/
jdk21_prerm.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/bash
update-alternatives --remove "java" "/usr/lib/jvm/jdk-21/bin/java"
update-alternatives --remove "javac" "/usr/lib/jvm/jdk-21/bin/javac"
update-alternatives --remove "jlink" "/usr/lib/jvm/jdk-21/bin/jlink"
update-alternatives --remove "jshell" "/usr/lib/jvm/jdk-21/bin/jshell"
update-alternatives --remove "javap" "/usr/lib/jvm/jdk-21/bin/javap"
update-alternatives --remove "javadoc" "/usr/lib/jvm/jdk-21/bin/javadoc"
update-alternatives --remove "jar" "/usr/lib/jvm/jdk-21/bin/jar"
update-alternatives --remove "jmod" "/usr/lib/jvm/jdk-21/bin/jmod"
update-alternatives --remove "jdeps" "/usr/lib/jvm/jdk-21/bin/jdeps"
update-alternatives --remove "jdeprscan" "/usr/lib/jvm/jdk-21/bin/jdeprscan"
update-alternatives --remove "jarsigner" "/usr/lib/jvm/jdk-21/bin/jarsigner"
update-alternatives --remove "keytool" "/usr/lib/jvm/jdk-21/bin/keytool"
update-alternatives --remove "jconsole" "/usr/lib/jvm/jdk-21/bin/jconsole"
update-alternatives --remove "jdb" "/usr/lib/jvm/jdk-21/bin/jdb"
update-alternatives --remove "jcmd" "/usr/lib/jvm/jdk-21/bin/jcmd"