Reputation: 1
Linux noob. I am trying to un-install openjdk but when I attempt it cannot find the package
$ java -version
openjdk version "1.8.0_181"
OpenJDK Runtime Environment (build 1.8.0_181-8u181-b13-2~deb9u1-b13)
OpenJDK 64-Bit Server VM (build 25.181-b13, mixed mode)
$ sudo apt remove openjdk+
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package openjdk
Upvotes: 0
Views: 619
Reputation: 805
To uninstall OpenJDK you should use APT
with the command
$ sudo apt-get remove openjdk-*
the *
wildcard will match whatever version of OpenJDK
you have installed
Upvotes: 1