Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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 undecided about whether to install the default-jdk java development package or the tarball from sun. How do I check the version information in the default-jdk or other package without actually installing it and all its dependencies?


John Goche

share|improve this question

run apt-get install package --print-uris

this will display all the dependencies of the package you need to install

it will show the package name like below from which you can get the version default-jdk_1%3a1.6-42ubuntu2_i386.deb

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.