Uninstall default-jdk

Clash Royale CLAN TAG#URR8PPP
up vote
4
down vote
favorite
I'm on a fresh Ubuntu 18.04 install. I did a sudo apt-get install default-jdk. Result:
java --version
openjdk 10.0.2 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.1)
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.1, mixed mode)
Now I did sudo apt-get purge default-jdk. Result:
java --version
openjdk 10.0.2 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.1)
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.1, mixed mode)
Why is OpenJDK still there?
openjdk default
New contributor
Robert is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
up vote
4
down vote
favorite
I'm on a fresh Ubuntu 18.04 install. I did a sudo apt-get install default-jdk. Result:
java --version
openjdk 10.0.2 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.1)
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.1, mixed mode)
Now I did sudo apt-get purge default-jdk. Result:
java --version
openjdk 10.0.2 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.1)
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.1, mixed mode)
Why is OpenJDK still there?
openjdk default
New contributor
Robert is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
up vote
4
down vote
favorite
up vote
4
down vote
favorite
I'm on a fresh Ubuntu 18.04 install. I did a sudo apt-get install default-jdk. Result:
java --version
openjdk 10.0.2 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.1)
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.1, mixed mode)
Now I did sudo apt-get purge default-jdk. Result:
java --version
openjdk 10.0.2 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.1)
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.1, mixed mode)
Why is OpenJDK still there?
openjdk default
New contributor
Robert is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I'm on a fresh Ubuntu 18.04 install. I did a sudo apt-get install default-jdk. Result:
java --version
openjdk 10.0.2 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.1)
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.1, mixed mode)
Now I did sudo apt-get purge default-jdk. Result:
java --version
openjdk 10.0.2 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.1)
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.1, mixed mode)
Why is OpenJDK still there?
openjdk default
openjdk default
New contributor
Robert is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Robert is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Robert is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 48 mins ago
Robert
211
211
New contributor
Robert is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Robert is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Robert is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
4
down vote
default-jdk in 18.04 has the following description:
Description: Standard Java or Java compatible Development Kit
This dependency package points to the Java runtime, or Java compatible
development kit recommended for this architecture, which is
openjdk-11-jdk for amd64.
The results of apt-cache depends default-jdk are as follows:
default-jdk
Depends: default-jre
Depends: default-jdk-headless
Depends: openjdk-11-jdk
The results of apt-cache rdepends default-jdk show that openjdk-11-jdk does not depend on default-jdk. default-jdk points to a Java runtime or Java compatible development kit, but uninstalling default-jdk does not uninstall either of these packages.
The name of the package installed by default-jdk is openjdk-11-jdk. To remove it, run the following command:
sudo apt remove openjdk-11-jdk
Sincedefault-jdkdepends onopenjdk-11-jdk, then wouldn't removingdefault-jdkfollowed by asudo apt-get autoremoveaccomplish the same?
â Android Dev
21 mins ago
@AndroidDev I replied to your comment by editing my answer. My reply is in the 5th paragraph.
â karel
7 mins ago
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
4
down vote
default-jdk in 18.04 has the following description:
Description: Standard Java or Java compatible Development Kit
This dependency package points to the Java runtime, or Java compatible
development kit recommended for this architecture, which is
openjdk-11-jdk for amd64.
The results of apt-cache depends default-jdk are as follows:
default-jdk
Depends: default-jre
Depends: default-jdk-headless
Depends: openjdk-11-jdk
The results of apt-cache rdepends default-jdk show that openjdk-11-jdk does not depend on default-jdk. default-jdk points to a Java runtime or Java compatible development kit, but uninstalling default-jdk does not uninstall either of these packages.
The name of the package installed by default-jdk is openjdk-11-jdk. To remove it, run the following command:
sudo apt remove openjdk-11-jdk
Sincedefault-jdkdepends onopenjdk-11-jdk, then wouldn't removingdefault-jdkfollowed by asudo apt-get autoremoveaccomplish the same?
â Android Dev
21 mins ago
@AndroidDev I replied to your comment by editing my answer. My reply is in the 5th paragraph.
â karel
7 mins ago
add a comment |Â
up vote
4
down vote
default-jdk in 18.04 has the following description:
Description: Standard Java or Java compatible Development Kit
This dependency package points to the Java runtime, or Java compatible
development kit recommended for this architecture, which is
openjdk-11-jdk for amd64.
The results of apt-cache depends default-jdk are as follows:
default-jdk
Depends: default-jre
Depends: default-jdk-headless
Depends: openjdk-11-jdk
The results of apt-cache rdepends default-jdk show that openjdk-11-jdk does not depend on default-jdk. default-jdk points to a Java runtime or Java compatible development kit, but uninstalling default-jdk does not uninstall either of these packages.
The name of the package installed by default-jdk is openjdk-11-jdk. To remove it, run the following command:
sudo apt remove openjdk-11-jdk
Sincedefault-jdkdepends onopenjdk-11-jdk, then wouldn't removingdefault-jdkfollowed by asudo apt-get autoremoveaccomplish the same?
â Android Dev
21 mins ago
@AndroidDev I replied to your comment by editing my answer. My reply is in the 5th paragraph.
â karel
7 mins ago
add a comment |Â
up vote
4
down vote
up vote
4
down vote
default-jdk in 18.04 has the following description:
Description: Standard Java or Java compatible Development Kit
This dependency package points to the Java runtime, or Java compatible
development kit recommended for this architecture, which is
openjdk-11-jdk for amd64.
The results of apt-cache depends default-jdk are as follows:
default-jdk
Depends: default-jre
Depends: default-jdk-headless
Depends: openjdk-11-jdk
The results of apt-cache rdepends default-jdk show that openjdk-11-jdk does not depend on default-jdk. default-jdk points to a Java runtime or Java compatible development kit, but uninstalling default-jdk does not uninstall either of these packages.
The name of the package installed by default-jdk is openjdk-11-jdk. To remove it, run the following command:
sudo apt remove openjdk-11-jdk
default-jdk in 18.04 has the following description:
Description: Standard Java or Java compatible Development Kit
This dependency package points to the Java runtime, or Java compatible
development kit recommended for this architecture, which is
openjdk-11-jdk for amd64.
The results of apt-cache depends default-jdk are as follows:
default-jdk
Depends: default-jre
Depends: default-jdk-headless
Depends: openjdk-11-jdk
The results of apt-cache rdepends default-jdk show that openjdk-11-jdk does not depend on default-jdk. default-jdk points to a Java runtime or Java compatible development kit, but uninstalling default-jdk does not uninstall either of these packages.
The name of the package installed by default-jdk is openjdk-11-jdk. To remove it, run the following command:
sudo apt remove openjdk-11-jdk
edited 2 mins ago
answered 42 mins ago
karel
50.7k11107127
50.7k11107127
Sincedefault-jdkdepends onopenjdk-11-jdk, then wouldn't removingdefault-jdkfollowed by asudo apt-get autoremoveaccomplish the same?
â Android Dev
21 mins ago
@AndroidDev I replied to your comment by editing my answer. My reply is in the 5th paragraph.
â karel
7 mins ago
add a comment |Â
Sincedefault-jdkdepends onopenjdk-11-jdk, then wouldn't removingdefault-jdkfollowed by asudo apt-get autoremoveaccomplish the same?
â Android Dev
21 mins ago
@AndroidDev I replied to your comment by editing my answer. My reply is in the 5th paragraph.
â karel
7 mins ago
Since
default-jdk depends on openjdk-11-jdk, then wouldn't removing default-jdk followed by a sudo apt-get autoremove accomplish the same?â Android Dev
21 mins ago
Since
default-jdk depends on openjdk-11-jdk, then wouldn't removing default-jdk followed by a sudo apt-get autoremove accomplish the same?â Android Dev
21 mins ago
@AndroidDev I replied to your comment by editing my answer. My reply is in the 5th paragraph.
â karel
7 mins ago
@AndroidDev I replied to your comment by editing my answer. My reply is in the 5th paragraph.
â karel
7 mins ago
add a comment |Â
Robert is a new contributor. Be nice, and check out our Code of Conduct.
Robert is a new contributor. Be nice, and check out our Code of Conduct.
Robert is a new contributor. Be nice, and check out our Code of Conduct.
Robert is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1076027%2funinstall-default-jdk%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
