LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-08-2016, 03:41 AM   #1
Huamin
Member
 
Registered: May 2011
Posts: 562

Rep: Reputation: 12
Problem to setup


Hi,
I want to
Within CentOS now, current Java version is

1.7.0

and I want to uninstall it and install 1.8. What should be the commands?
 
Old 11-08-2016, 04:07 AM   #2
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, Windows Vista
Posts: 6,277
Blog Entries: 3

Rep: Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841
Quote:
Originally Posted by Huamin View Post
Within CentOS now, current Java version is

1.7.0

and I want to uninstall it and install 1.8. What should be the commands?
Hi...

No offense but did you try Googling this before you posted? I found this article very quickly. To uninstall version 1.7.0, take a look at the articles here or here.

Regards...

Last edited by ardvark71; 11-08-2016 at 04:14 AM. Reason: Added information and links.
 
1 members found this post helpful.
Old 11-08-2016, 08:31 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,932

Rep: Reputation: 7023Reputation: 7023Reputation: 7023Reputation: 7023Reputation: 7023Reputation: 7023Reputation: 7023Reputation: 7023Reputation: 7023Reputation: 7023Reputation: 7023
Quote:
Originally Posted by Huamin View Post
Hi,
I want to Within CentOS now, current Java version is 1.7.0 and I want to uninstall it and install 1.8. What should be the commands?
Seriously??? You've been working with Java for FOUR YEARS at this point, and have (many times) been asked to do basic research of your own. Also, you've been asked many times to provide details (how about what VERSION of CentOS???), but typing "yum update jdk" would be a great place to start, or even looking at the Java website for the latest version?
http://www.oracle.com/technetwork/ja...s-1880260.html

After at least four years, you should know the "rpm -ivh" command, to install new packages, and the "rpm -e" command to REMOVE them.
 
1 members found this post helpful.
Old 11-08-2016, 09:16 AM   #4
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,237

Rep: Reputation: 1656Reputation: 1656Reputation: 1656Reputation: 1656Reputation: 1656Reputation: 1656Reputation: 1656Reputation: 1656Reputation: 1656Reputation: 1656Reputation: 1656
You can also just KEEP java-1.7.0-openjdk and install the new java-1.8.0-openjdk at the same time. You can use 'alternatives' to set things up to use one or the other. This is sometimes needed to keep from breaking legacy programs.
 
Old 11-09-2016, 12:49 AM   #5
Huamin
Member
 
Registered: May 2011
Posts: 562

Original Poster
Rep: Reputation: 12
Thanks Ardvark and Szboardstretcher

Last edited by Huamin; 11-09-2016 at 12:58 AM.
 
Old 11-09-2016, 01:18 AM   #6
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, Windows Vista
Posts: 6,277
Blog Entries: 3

Rep: Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841
Quote:
Originally Posted by Huamin View Post
Thanks Ardvark and Szboardstretcher
You're welcome, let us know how it goes.

Regards...
 
Old 11-09-2016, 01:36 AM   #7
Huamin
Member
 
Registered: May 2011
Posts: 562

Original Poster
Rep: Reputation: 12
Many thanks Ardvark.

Last edited by Huamin; 11-09-2016 at 03:23 AM.
 
Old 11-09-2016, 10:34 PM   #8
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, Windows Vista
Posts: 6,277
Blog Entries: 3

Rep: Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841
Quote:
Originally Posted by Huamin View Post
Many thanks Ardvark.
You're welcome, glad you were able to resolve the issue.

Regards...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help on setup of fedora 20 as a router from nic setup to firewalld setup Brian1 Linux - Networking 4 07-02-2014 08:53 PM
setup for official Laptop. (Admin setup in server and user account setup in lap) vignesh4sh Linux - Server 3 11-26-2012 07:03 AM
DNS Setup Problem or Godaddy Problem videoman Linux - Networking 1 02-05-2009 04:38 PM
Webmail setup problem in Thunderbird - Hotmail and Yahoo setup arindom Linux - Software 7 03-25-2008 11:27 AM
setup problem 65chevelle Linux - Newbie 1 01-16-2003 01:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration