LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   openjdk-7 dependencies in Wheezy (https://www.linuxquestions.org/questions/debian-26/openjdk-7-dependencies-in-wheezy-4175428195/)

hopethishelps 09-20-2012 06:53 AM

openjdk-7 dependencies in Wheezy
 
I'm using Wheezy and have openjdk-6-jre installed. Since openjdk-7-jre is available in Wheezy, I wanted to upgrade to it.

In Synaptic, I selected openjdk-7-jre. Although I already have openjdk-6-jre installed, Synaptic came back with a list of dependencies that need to be installed. They include: gnome-mime-data, libgnome2-0, libgnomevfs2-0.

Since I don't use gnome, (I use xfce and lightdm) I was surprised. Why does openjdk-7-jre require all this gnome stuff, which openjdk-6-jre does not?

craigevil 09-20-2012 07:51 AM

This is exactly why I installed Oracle Java. At one point a couple months ago it wanted to install a ton of Gnome packages. Although it appears to be fixed on sid.

Code:

$ apt-get install openjdk-7-jre -s
NOTE: This is only a simulation!
      apt-get needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree     
Reading state information... Done
The following extra packages will be installed:
  openjdk-7-jre-headless openjdk-7-jre-lib
Suggested packages:
  icedtea-7-plugin libnss-mdns sun-java6-fonts fonts-ipafont-gothic fonts-ipafont-mincho ttf-wqy-microhei ttf-wqy-zenhei
  ttf-indic-fonts
Recommended packages:
  libgnome2-0 libgnomevfs2-0 icedtea-7-jre-cacao icedtea-7-jre-jamvm
The following NEW packages will be installed:
  openjdk-7-jre openjdk-7-jre-headless openjdk-7-jre-lib
0 upgraded, 3 newly installed, 0 to remove and 16 not upgraded.

Try doing:
Code:

apt-get --no-install-recommends install openjdk-7-jre


All times are GMT -5. The time now is 03:25 PM.