I have 2 java installations /usr/lib/jvm/java-8-oracle/bin/java AND /usr/bin/java. I want to remove one (/usr/bin/java) [closed]
Clash Royale CLAN TAG#URR8PPP
up vote
-2
down vote
favorite
This is what i have, i want the top one gone
java jdk
closed as unclear what you're asking by Kusalananda, Anthon, Jeff Schaller, sebasth, Philippos Sep 26 '17 at 12:43
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, itâÂÂs hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |Â
up vote
-2
down vote
favorite
This is what i have, i want the top one gone
java jdk
closed as unclear what you're asking by Kusalananda, Anthon, Jeff Schaller, sebasth, Philippos Sep 26 '17 at 12:43
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, itâÂÂs hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
So, what prevents you from reaching that goal?
â Satà  Katsura
Sep 26 '17 at 10:40
I don't know which commands to run as i can't tell what names the packages go by
â Dudus
Sep 26 '17 at 10:42
As it looks like you are running Ubuntu, you can run "dpkg-query -S /usr/bin/java to discover the package managing the file. You can then use "apt-get remove <package name>"
â Raman Sailopal
Sep 26 '17 at 10:51
2
Please don't post images of text. Instead, paste the text directly into your question and use the formatting tools. And at the very least, don't post images containing the wrong commands you ran! Also, you need to tell us what operating system you are using.
â terdonâ¦
Sep 26 '17 at 10:53
add a comment |Â
up vote
-2
down vote
favorite
up vote
-2
down vote
favorite
This is what i have, i want the top one gone
java jdk
This is what i have, i want the top one gone
java jdk
java jdk
asked Sep 26 '17 at 10:38
Dudus
166
166
closed as unclear what you're asking by Kusalananda, Anthon, Jeff Schaller, sebasth, Philippos Sep 26 '17 at 12:43
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, itâÂÂs hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
closed as unclear what you're asking by Kusalananda, Anthon, Jeff Schaller, sebasth, Philippos Sep 26 '17 at 12:43
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, itâÂÂs hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
So, what prevents you from reaching that goal?
â Satà  Katsura
Sep 26 '17 at 10:40
I don't know which commands to run as i can't tell what names the packages go by
â Dudus
Sep 26 '17 at 10:42
As it looks like you are running Ubuntu, you can run "dpkg-query -S /usr/bin/java to discover the package managing the file. You can then use "apt-get remove <package name>"
â Raman Sailopal
Sep 26 '17 at 10:51
2
Please don't post images of text. Instead, paste the text directly into your question and use the formatting tools. And at the very least, don't post images containing the wrong commands you ran! Also, you need to tell us what operating system you are using.
â terdonâ¦
Sep 26 '17 at 10:53
add a comment |Â
So, what prevents you from reaching that goal?
â Satà  Katsura
Sep 26 '17 at 10:40
I don't know which commands to run as i can't tell what names the packages go by
â Dudus
Sep 26 '17 at 10:42
As it looks like you are running Ubuntu, you can run "dpkg-query -S /usr/bin/java to discover the package managing the file. You can then use "apt-get remove <package name>"
â Raman Sailopal
Sep 26 '17 at 10:51
2
Please don't post images of text. Instead, paste the text directly into your question and use the formatting tools. And at the very least, don't post images containing the wrong commands you ran! Also, you need to tell us what operating system you are using.
â terdonâ¦
Sep 26 '17 at 10:53
So, what prevents you from reaching that goal?
â Satà  Katsura
Sep 26 '17 at 10:40
So, what prevents you from reaching that goal?
â Satà  Katsura
Sep 26 '17 at 10:40
I don't know which commands to run as i can't tell what names the packages go by
â Dudus
Sep 26 '17 at 10:42
I don't know which commands to run as i can't tell what names the packages go by
â Dudus
Sep 26 '17 at 10:42
As it looks like you are running Ubuntu, you can run "dpkg-query -S /usr/bin/java to discover the package managing the file. You can then use "apt-get remove <package name>"
â Raman Sailopal
Sep 26 '17 at 10:51
As it looks like you are running Ubuntu, you can run "dpkg-query -S /usr/bin/java to discover the package managing the file. You can then use "apt-get remove <package name>"
â Raman Sailopal
Sep 26 '17 at 10:51
2
2
Please don't post images of text. Instead, paste the text directly into your question and use the formatting tools. And at the very least, don't post images containing the wrong commands you ran! Also, you need to tell us what operating system you are using.
â terdonâ¦
Sep 26 '17 at 10:53
Please don't post images of text. Instead, paste the text directly into your question and use the formatting tools. And at the very least, don't post images containing the wrong commands you ran! Also, you need to tell us what operating system you are using.
â terdonâ¦
Sep 26 '17 at 10:53
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
One is openjdk the other one is oracle java. So what you want to remove is opendjdk.
Assuming this is a .deb based system.
dpkg -l | grep openjdk
apt-get remove packagename
And then remove the packages that you find there. You could also instead of removing it just adjust your default used java with:
update-alternatives --config java
This way you can keep both installations and switch if you ever need the other one.
If it can't find the path to your wanted java you can add it manually by running e.g. this:
alternatives --install /usr/bin/java java /usr/lib/jvm/java-8-oracle/bin/java 3
And then the config command again.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
One is openjdk the other one is oracle java. So what you want to remove is opendjdk.
Assuming this is a .deb based system.
dpkg -l | grep openjdk
apt-get remove packagename
And then remove the packages that you find there. You could also instead of removing it just adjust your default used java with:
update-alternatives --config java
This way you can keep both installations and switch if you ever need the other one.
If it can't find the path to your wanted java you can add it manually by running e.g. this:
alternatives --install /usr/bin/java java /usr/lib/jvm/java-8-oracle/bin/java 3
And then the config command again.
add a comment |Â
up vote
1
down vote
accepted
One is openjdk the other one is oracle java. So what you want to remove is opendjdk.
Assuming this is a .deb based system.
dpkg -l | grep openjdk
apt-get remove packagename
And then remove the packages that you find there. You could also instead of removing it just adjust your default used java with:
update-alternatives --config java
This way you can keep both installations and switch if you ever need the other one.
If it can't find the path to your wanted java you can add it manually by running e.g. this:
alternatives --install /usr/bin/java java /usr/lib/jvm/java-8-oracle/bin/java 3
And then the config command again.
add a comment |Â
up vote
1
down vote
accepted
up vote
1
down vote
accepted
One is openjdk the other one is oracle java. So what you want to remove is opendjdk.
Assuming this is a .deb based system.
dpkg -l | grep openjdk
apt-get remove packagename
And then remove the packages that you find there. You could also instead of removing it just adjust your default used java with:
update-alternatives --config java
This way you can keep both installations and switch if you ever need the other one.
If it can't find the path to your wanted java you can add it manually by running e.g. this:
alternatives --install /usr/bin/java java /usr/lib/jvm/java-8-oracle/bin/java 3
And then the config command again.
One is openjdk the other one is oracle java. So what you want to remove is opendjdk.
Assuming this is a .deb based system.
dpkg -l | grep openjdk
apt-get remove packagename
And then remove the packages that you find there. You could also instead of removing it just adjust your default used java with:
update-alternatives --config java
This way you can keep both installations and switch if you ever need the other one.
If it can't find the path to your wanted java you can add it manually by running e.g. this:
alternatives --install /usr/bin/java java /usr/lib/jvm/java-8-oracle/bin/java 3
And then the config command again.
answered Sep 26 '17 at 11:05
Ziazis
232110
232110
add a comment |Â
add a comment |Â
So, what prevents you from reaching that goal?
â Satà  Katsura
Sep 26 '17 at 10:40
I don't know which commands to run as i can't tell what names the packages go by
â Dudus
Sep 26 '17 at 10:42
As it looks like you are running Ubuntu, you can run "dpkg-query -S /usr/bin/java to discover the package managing the file. You can then use "apt-get remove <package name>"
â Raman Sailopal
Sep 26 '17 at 10:51
2
Please don't post images of text. Instead, paste the text directly into your question and use the formatting tools. And at the very least, don't post images containing the wrong commands you ran! Also, you need to tell us what operating system you are using.
â terdonâ¦
Sep 26 '17 at 10:53