On Tue, 2006-04-11 at 21:46 -0700, Joel Jaeggli wrote: > On Wed, 12 Apr 2006, Ankush Grover wrote: > > > On 4/12/06, Jim Douglas <jdz99@xxxxxxxxxxx> wrote: > >> > >> When I enter , > >> > >> java -version > > I assume this java is in the path? > > rpm -q -f /usr/bin/java A more robust method *would* be: rpm -qf $(which java) However on my system this gives file /usr/bin/java is not owned by any package If I look at the file in question and follow the symbolic links [dan@carbon ~]$ ll /usr/bin/java lrwxrwxrwx 1 root root 22 Mar 22 09:56 /usr/bin/java -> /etc/alternatives/java [dan@carbon ~]$ ll /etc/alternatives/java lrwxrwxrwx 1 root root 35 Mar 22 09:56 /etc/alternatives/java -> /usr/lib/jvm/jre-1.4.2-gcj/bin/java I can then query the 'real' file [dan@carbon ~]$ rpm -qf /usr/lib/jvm/jre-1.4.2-gcj/bin/java java-1.4.2-gcj-compat-1.4.2.0-40jpp_83rh I leave applying this to an actual remove command as an exercise for the reader. - Dan This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. This communication may be legally privileged. If you are not the intended receipient, please be advised that you have received this email in error and that any use, dissemination, forwarding, printing or copying of this email is strictly prohibited. If you have received this email in error, please notify the OCSL switchboard on +44 1403 700959