Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to install jdk-7u25-linux-x64.rpm through rpm. However, rpm says it conflicts with jre-1.6.0_13-fcs. I then try to remove jre-1.6.0_13-fcs but it fails because there are other packages that depend on it.

Is there a better way than for me to remove all possible dependencies and then re-install them back after I successfully install jdk-7u25-linux-x64.rpm?

share|improve this question

i cant comment on jre / jdk specifically, but yum shell can do what you want.

yum shell:

remove jre
install jdk
run
will swap one for the other, if all dependencies are met. I've done this previously to switch out syslog-ng with rsyslog.

share|improve this answer
    
sudo yum remove jre also removed all my dependencies. – jacky Sep 5 '13 at 3:16
    
now I have to re-install them back after I installed jdk. :-( – jacky Sep 5 '13 at 3:16
    
Yeah, that's why I said I couldn't speak for jre/jdk. I've never needed to do what you're trying here, which suggests to me that there's a better way than swapping one for another. Off the top of my head I don't know enough java fu to advise though – Sirex Sep 5 '13 at 10:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .