Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

rpm -e jdk-1.6.0_17-fcs error: Failed dependencies: jdk is needed by (installed) xyz.i586 I tried to search for xyz.i586 find / -name xyz.i586

but no result.

share|improve this question

migrated from stackoverflow.com Oct 12 '12 at 17:30

This question came from our site for professional and enthusiast programmers.

    
It would help if you listed what linux distro you are using. From your question we can only assume it is rpm based (redhat, fedora, centOS?) –  mrchampe Oct 12 '12 at 18:05

4 Answers 4

did you try the -q option ?

$ rpm -q jdk

jdk-1.6.0_34-fcs.x86_64
share|improve this answer

Instead of using -q flag

$ rpm -q jdk

I would use -qa flag then grep output

$ rpm -qa | grep jdk
java-1.6.0-openjdk-1.6.0.0-1.49.1.11.4.el6_3.x86_64

Since it will cast a wider net and list java packages that may not begin with "jdk"

share|improve this answer

(Oh, you are using an old JDK version, I understand you want to uninstall it.)

To find out whether xyz is installed I would use:

rpm -q -a | grep xyz

But you already know xyz is installed: jdk rejects being uninstalled because it is needed by xyz.

Maybe you want to know where xyz is or what it is?. Use this to list all files of package xyz:

rpm -q -l xyz

and this to show a description of xyz:

rpm -q -i xyz

If you don't need xyz you can uninstall both xyz and jdk as follows:

rpm -e xyz jdk
share|improve this answer

For where the program was installed (including all of the supporting files, so it can be a long list that you would need to search through)

dpkg-query -L firefox

For the menu item containing the package, look for a file in /usr/share/menu in the output of dpkg-query:

dpkg-query -L firefox | grep /usr/share/menu

In that file you should find "section=". The string after that text should indicate where in the menu system you would find the link to the application.

For information about what categories Ubuntu put the package into, you might try:

aptitude show firefox

share|improve this answer
    
dpkg and aptitude probably won't be useful since the OP is referencing missing rpm's –  mrchampe Oct 12 '12 at 18:06

Your Answer

 
discard

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.